diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2024-02-25 17:47:40 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-25 17:47:40 -0600 |
| commit | bb675fe4b438a56c461b73283733efccd73b53d2 (patch) | |
| tree | e15b3d2f146a77813710a07372d98d51b64900a6 /flake.nix | |
| parent | df9191b6c4b9c0cf03bb959f777e9ca4a2cee395 (diff) | |
init
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2544357 --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + description = "Nixos config flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { self, nixpkgs, ... }@inputs: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in + { + + nixosConfigurations.default = nixpkgs.lib.nixosSystem { + specialArgs = {inherit inputs;}; + modules = [ + ./configuration.nix + inputs.home-manager.nixosModules.default + ]; + }; + + }; +} |
