diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-03-29 23:09:38 +0100 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-03-29 23:09:38 +0100 |
| commit | 2e37bf1533ace5b2d4d50196300133d9e72d2952 (patch) | |
| tree | 0c06f4f03599933bb3d0e31620203287ca67c7c0 /home-manager/flake.nix | |
| parent | 2418424adabca0a1616cca4920221cd67149b65a (diff) | |
flakes update feat. xfce
Diffstat (limited to '')
| -rw-r--r-- | home-manager/flake.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/home-manager/flake.nix b/home-manager/flake.nix new file mode 100644 index 0000000..f68b20f --- /dev/null +++ b/home-manager/flake.nix @@ -0,0 +1,59 @@ +{ + description = "Home-manager configuration"; + + nixConfig = { + experimental-feature = ["nix-command" "flakes"]; + }; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; + nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.11"; + nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + home-manager = { + url = "github:nix-community/home-manager/release-24.11"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + + + outputs = {self, nixpkgs, nixpkgs-stable, nixpkgs-unstable, flake-utils, home-manager, ... }@inputs: + let + inherit (self) outputs; + + pkgsForSystem = system: nixpkgsSource: import nixpkgsSource { + inherit system; + }; + HomeConfiguration = args: + let + nixpkgs = args.nixpkgs or nixpkgs-stable; + in + home-manager.lib.homeManagerConfiguration { + modules = [ + (import ./home ) + (import ./modules ) + ]; + extraSpecialArgs = { + inherit (args) nixpkgs; + } // args.extraSpecialArgs; + pkgs = pkgsForSystem (args.system or "x86_64-linux") nixpkgs; + }; + + + in flake-utils.lib.eachSystem [ + "x86_64-linux" + ] (system: { + legacyPackages = pkgsForSystem system nixpkgs; + }) // { + # overlays = import ./overlays {inherit inputs;}; + homeConfigurations = { + "wilkuu" = HomeConfiguration { + extraSpecialArgs = { + }; + + }; + }; + inherit home-manager; + inherit (home-manager) packages; + }; +} |
