From 3d50579446f105fc895241c1afc20fc3027ad1a2 Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Tue, 24 Mar 2026 18:40:41 +0100 Subject: Added a flake.nix --- flake.nix | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 flake.nix 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 + ]; + }; + }; + }; +} -- cgit v1.2.3