aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix37
1 files changed, 29 insertions, 8 deletions
diff --git a/flake.nix b/flake.nix
index a12cab6..95919ec 100644
--- a/flake.nix
+++ b/flake.nix
@@ -4,23 +4,32 @@
inputs = {
# default nix flake imports
nixpkgs = {
- url = "github:nixos/nixpkgs/nixos-25.05";
# url = "github:nixos/nixpkgs/nixos-25.11";
- # url = "github:nixos/nixpkgs/nixos-unstable";
+ url = "github:nixos/nixpkgs/nixos-unstable";
};
home-manager = {
- url = "github:nix-community/home-manager/release-25.05";
# url = "github:nix-community/home-manager/release-25.11";
- # url = "github:nix-community/home-manager";
+ url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# custom flakes
- ## nix-flatpaks
- nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
+ ## flatpaks
+ flatpaks.url = "github:gmodena/nix-flatpak/?ref=latest";
+ ## winapps
+ winapps = {
+ url = "github:winapps-org/winapps";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
};
- outputs = inputs @ { nixpkgs, home-manager, ... }:
+ outputs = inputs @ {
+ nixpkgs,
+ home-manager,
+ flatpaks,
+ winapps,
+ ...
+ }:
let
system = "x86_64-linux";
@@ -64,12 +73,24 @@
];
ClientModules = [
- inputs.nix-flatpak.nixosModules.nix-flatpak
+ flatpaks.nixosModules.nix-flatpak
./modules/client
];
ServerModules = [
./modules/server
+ (
+ {
+ pkgs,
+ ...
+ }:
+ {
+ environment.systemPackages = with pkgs; [
+ winapps.packages."x86_64-linux".winapps
+ winapps.packages."x86_64-linux".winapps-launcher # optional
+ ];
+ }
+ )
];
mkHost = { hostPath, extraModules }:
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.