2022-12-30 12:05:46 +00:00
|
|
|
{
|
|
|
|
description = ''
|
|
|
|
This i my basic NixOS system configuration. Feel free to reuse anything you find useful.
|
|
|
|
'';
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-01-09 15:22:48 +00:00
|
|
|
agenix.url = "github:ryantm/agenix";
|
2022-12-30 12:05:46 +00:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
|
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
|
|
|
};
|
|
|
|
|
2023-01-09 15:03:01 +00:00
|
|
|
outputs = { self, nixpkgs, home-manager, agenix, deploy-rs, ... }@inputs:
|
2022-12-30 12:05:46 +00:00
|
|
|
let
|
|
|
|
inherit (self) outputs;
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
homecfg = home-manager.lib.homeManagerConfiguration;
|
|
|
|
in {
|
2023-01-18 19:14:16 +00:00
|
|
|
nixosConfigurations = {
|
2022-12-30 12:05:46 +00:00
|
|
|
lkk-nix-1 = lib.nixosSystem {
|
|
|
|
specialArgs = { inherit inputs; };
|
2023-01-09 15:03:01 +00:00
|
|
|
modules = [
|
|
|
|
./hosts/lkk-nix-1
|
2023-01-19 09:56:59 +00:00
|
|
|
agenix.nixosModule
|
2023-01-09 15:03:01 +00:00
|
|
|
];
|
2022-12-30 12:05:46 +00:00
|
|
|
};
|
2023-01-18 19:14:16 +00:00
|
|
|
}; homeConfigurations = {
|
2022-12-30 12:05:46 +00:00
|
|
|
# Laptop
|
|
|
|
"m3tam3re@m3-nix" = {
|
|
|
|
homecfg = {
|
|
|
|
extraSpecialArgs = { # pass things to the home configuration
|
|
|
|
};
|
|
|
|
modules = [ ./home/users/m3tam3re/m3-nix.nix ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# Company Root Server
|
|
|
|
"m3tam3re@lkk-nix-1" = {
|
|
|
|
homecfg = {
|
|
|
|
extraSpecialArgs = { # pass things to the home configuration
|
|
|
|
};
|
|
|
|
modules = [ ./home/users/m3tam3re/lkk-nix-1.nix ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
deploy.nodes.lkk-nix-1 = {
|
|
|
|
hostname = "lkk-nix-1";
|
|
|
|
sshUser = "root";
|
|
|
|
profiles.system = {
|
|
|
|
user = "root";
|
|
|
|
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
|
|
|
self.nixosConfigurations.lkk-nix-1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
deploy.remoteBuild = true;
|
|
|
|
};
|
|
|
|
}
|