nixos_config/flake.nix

59 lines
1.7 KiB
Nix
Raw Normal View History

2025-07-20 17:46:39 +02:00
{
description = "NixOS configuration for all hosts";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2025-07-23 13:12:09 +02:00
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.05";
2025-07-20 17:46:39 +02:00
flake-utils.url = "github:numtide/flake-utils";
2025-07-21 20:58:31 +02:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-07-20 17:46:39 +02:00
};
2025-07-21 20:58:31 +02:00
outputs = { self, nixpkgs, flake-utils, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
{
2025-07-21 19:53:17 +02:00
nixosConfigurations = {
2025-07-23 13:16:55 +02:00
electra = nixpkgs.lib.nixosSystem {
2025-07-21 20:58:31 +02:00
inherit system;
2025-07-20 17:46:39 +02:00
modules = [
2025-07-21 20:16:37 +02:00
{
nixpkgs.config.allowUnfree = true;
}
2025-07-23 13:16:55 +02:00
./hosts/electra/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alisceon = import ./home/users/alisceon.nix;
home-manager.backupFileExtension = "backup";
}
];
};
tower = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
{
nixpkgs.config.allowUnfree = true;
}
./hosts/tower/configuration.nix
2025-07-20 17:46:39 +02:00
home-manager.nixosModules.home-manager
2025-07-21 20:58:31 +02:00
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.alisceon = import ./home/users/alisceon.nix;
2025-07-21 23:55:59 +02:00
home-manager.backupFileExtension = "backup";
2025-07-21 20:58:31 +02:00
}
2025-07-20 17:46:39 +02:00
];
};
2025-07-21 19:53:17 +02:00
};
2025-07-21 20:58:31 +02:00
};
2025-07-20 17:46:39 +02:00
}