2024-08-25 19:58:12 +00:00
|
|
|
{
|
|
|
|
description = "nezia's nixos configuration";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
nixvim = {
|
|
|
|
url = "github:nix-community/nixvim";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
sops-nix = {
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
shells = {
|
2024-08-27 11:01:09 +00:00
|
|
|
url = "path:shells";
|
2024-08-25 19:58:12 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-08-26 00:53:19 +00:00
|
|
|
stylix = {
|
|
|
|
url = "github:danth/stylix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-08-25 19:58:12 +00:00
|
|
|
};
|
|
|
|
|
2024-08-26 00:53:19 +00:00
|
|
|
outputs = { nixpkgs, home-manager, nixvim, sops-nix, stylix, ... }@inputs:
|
2024-08-25 19:58:12 +00:00
|
|
|
let
|
|
|
|
username = "nezia";
|
2024-08-25 20:58:58 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
|
|
|
|
commonModules = hostname: [
|
2024-08-27 11:22:17 +00:00
|
|
|
./modules/system
|
2024-08-26 11:46:52 +00:00
|
|
|
./modules/sops.nix
|
|
|
|
./modules/gnome.nix
|
|
|
|
./modules/syncthing
|
|
|
|
./modules/stylix.nix
|
2024-08-25 20:58:58 +00:00
|
|
|
./hosts/${hostname}
|
2024-08-27 11:22:17 +00:00
|
|
|
|
2024-08-25 20:58:58 +00:00
|
|
|
sops-nix.nixosModules.sops
|
2024-08-26 00:53:19 +00:00
|
|
|
stylix.nixosModules.stylix
|
2024-08-25 20:58:58 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.sharedModules = [ nixvim.homeManagerModules.nixvim ];
|
|
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
|
|
}
|
|
|
|
{ _module.args = { inherit hostname username; }; }
|
|
|
|
];
|
2024-08-25 21:53:48 +00:00
|
|
|
|
2024-08-26 11:46:52 +00:00
|
|
|
configureSystem = hostname: homeConfig: nixpkgs.lib.nixosSystem {
|
2024-08-25 21:53:48 +00:00
|
|
|
system = system;
|
|
|
|
modules = commonModules hostname ++ [
|
|
|
|
{ home-manager.users.${username} = import homeConfig; }
|
|
|
|
];
|
|
|
|
};
|
2024-08-25 19:58:12 +00:00
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
2024-08-25 21:53:48 +00:00
|
|
|
vamos = configureSystem "vamos" ./home/laptop;
|
|
|
|
solaire = configureSystem "solaire" ./home/desktop;
|
2024-08-25 19:58:12 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|