diff options
| -rw-r--r-- | flake.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..df31213 --- /dev/null +++ b/flake.nix @@ -0,0 +1,58 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; # Stable Nixpkgs + nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; # Unstable Nixpkgs + home-manager = { + # Home Manager + url = "github:nix-community/home-manager/release-25.11"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + stylix = { + url = "github:nix-community/stylix"; # Color theme manager + inputs.nixpkgs.follows = "nixpkgs"; + }; + nixcord = { + url = "github:FlameFlag/nixcord"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + fenix = { + # Rust tool-chain manager + url = "github:nix-community/fenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { + self, + nixpkgs, + nixpkgs-unstable, + home-manager, + stylix, + nixcord, + fenix, + ... + } @ inputs: { + nixosConfigurations = { + # Laptop + kronos = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = {inherit inputs;}; + modules = [ + ./hosts/kronos/configuration.nix + stylix.nixosModules.stylix + ./modules/home-manager.nix + ]; + }; + # Desk PC + herra = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = {inherit inputs;}; + modules = [ + ./hosts/herra/configuration.nix + stylix.nixosModules.stylix + ./modules/hhome-manager.nix + ]; + }; + }; + }; +} |
