2024-08-25 19:58:12 +00:00
|
|
|
{
|
|
|
|
description = "nezia's nixos configuration";
|
|
|
|
|
2024-09-24 13:09:24 +00:00
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
|
|
|
nixvim,
|
|
|
|
nvf,
|
|
|
|
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-09-05 13:58:14 +00:00
|
|
|
./modules
|
2024-09-04 23:08:58 +00:00
|
|
|
./hosts/common
|
2024-08-25 20:58:58 +00:00
|
|
|
./hosts/${hostname}
|
2024-08-27 11:22:17 +00:00
|
|
|
|
2024-09-24 13:09:24 +00:00
|
|
|
sops-nix.nixosModules.sops
|
2024-09-06 13:28:06 +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;
|
2024-09-24 13:09:24 +00:00
|
|
|
home-manager.sharedModules = [
|
|
|
|
nixvim.homeManagerModules.nixvim
|
2024-09-06 10:42:22 +00:00
|
|
|
];
|
2024-09-24 13:09:24 +00:00
|
|
|
home-manager.extraSpecialArgs = {
|
|
|
|
inherit inputs system;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
_module.args = {
|
|
|
|
inherit hostname username;
|
|
|
|
};
|
2024-08-25 20:58:58 +00:00
|
|
|
}
|
|
|
|
];
|
2024-08-25 21:53:48 +00:00
|
|
|
|
2024-09-24 13:09:24 +00:00
|
|
|
configureSystem =
|
|
|
|
hostname: homeConfig:
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
system = system;
|
|
|
|
modules = commonModules hostname ++ [ { home-manager.users."${username}" = import homeConfig; } ];
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2024-08-25 19:58:12 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
};
|
2024-09-24 13:09:24 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
stylix.url = "github:danth/stylix";
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
wezterm = {
|
|
|
|
url = "github:wez/wezterm/main?dir=nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
zen-browser.url = "github:MarceColl/zen-browser-flake";
|
|
|
|
nvf = {
|
|
|
|
url = "github:notashelf/nvf";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
|
|
|
};
|
2024-08-25 19:58:12 +00:00
|
|
|
}
|