summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-03-24 18:40:41 +0100
committerNatasha Moongrave <natasha@256phi.eu>2026-03-24 18:40:41 +0100
commit3d50579446f105fc895241c1afc20fc3027ad1a2 (patch)
tree97c3b9b12beefb136936cd39395ffd846477f912
parent640794a741177bb0bb1a0d161eb743f2bfed73ca (diff)
Added a flake.nix
-rw-r--r--flake.nix58
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
+ ];
+ };
+ };
+ };
+}