86 lines
2.7 KiB
Nix
86 lines
2.7 KiB
Nix
# flake.nix
|
|
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
|
lix-module = {
|
|
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.93.0.tar.gz";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
vscode-server.url = "github:nix-community/nixos-vscode-server";
|
|
agenix.url = "github:ryantm/agenix";
|
|
zen-browser = {
|
|
url = "github:0xc000022070/zen-browser-flake";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
catppuccin.url = "github:catppuccin/nix";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs@{ self, nixpkgs, lix-module, vscode-server, agenix, zen-browser, catppuccin, home-manager, ... }: {
|
|
nixosConfigurations = {
|
|
focalor = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; system = "x86_64-linux"; };
|
|
modules = [
|
|
./hosts/focalor
|
|
lix-module.nixosModules.default
|
|
|
|
vscode-server.nixosModules.default
|
|
agenix.nixosModules.default
|
|
|
|
({ config, pkgs, ... }: {
|
|
services.vscode-server.enable = true;
|
|
services.vscode-server.nodejsPackage = pkgs.nodejs_20;
|
|
environment.systemPackages = [ agenix.packages.x86_64-linux.default ];
|
|
})
|
|
|
|
catppuccin.nixosModules.catppuccin
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.backupFileExtension = "HMBackup";
|
|
home-manager.users.regent.imports = [
|
|
./home/regent/home.nix
|
|
catppuccin.homeManagerModules.catppuccin
|
|
];
|
|
home-manager.extraSpecialArgs = { inherit inputs; system = "x86_64-linux";};
|
|
}
|
|
];
|
|
};
|
|
|
|
valefar = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./hosts/valefar # imports configuration.nix automatically
|
|
lix-module.nixosModules.default
|
|
|
|
# External modules
|
|
vscode-server.nixosModules.default
|
|
agenix.nixosModules.default
|
|
|
|
# Global external module config
|
|
({ config, pkgs, ... }: {
|
|
services.vscode-server.enable = true;
|
|
services.vscode-server.nodejsPackage = pkgs.nodejs_20;
|
|
environment.systemPackages = [ agenix.packages.x86_64-linux.default ];
|
|
})
|
|
];
|
|
};
|
|
|
|
# Easy to add more hosts
|
|
/*server2 = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./hosts/server2
|
|
agenix.nixosModules.default
|
|
# different services for server2
|
|
];
|
|
};*/
|
|
};
|
|
};
|
|
}
|