diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..fce4308 --- /dev/null +++ b/flake.nix @@ -0,0 +1,33 @@ +{ + description = "My NixOS Flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; + home-manager.url = "github:nix-community/home-manager/release-24.05"; + helix.url = "github:helix-editor/helix/master"; + home-jras.url = "path:/home/jras/home-manager"; + zen-browser.url = "github:MarceColl/zen-browser-flake"; + }; + + outputs = { self, nixpkgs, home-manager, home-jras, ... }@inputs: { + nixosConfigurations.tarrel = nixpkgs.lib.nixosSystem { + modules = [ + ./configuration.nix + ./hardware-configuration.nix + ./gaming.nix + ./networking.nix + ./keyd.nix + ./services.nix + ./packages.nix + + home-manager.nixosModules.home-manager { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.jras = import "${home-jras}/entrypoints/personal.nix"; + + home-manager.extraSpecialArgs = { inherit inputs; }; + } + ]; + }; + }; +} |