-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
91 lines (77 loc) · 2.37 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
description = "NixOS Configuration";
inputs = {
emacs = {
url = "github:nix-community/emacs-overlay/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
hyprland.url = "github:hyprwm/Hyprland";
hosts.url = "github:StevenBlack/hosts";
};
outputs = { self, impermanence, home, hosts, nixpkgs, ... }@inputs:
let
lib = nixpkgs.lib;
system = "x86_64-linux";
in
{
nixosConfigurations = {
caladan = lib.nixosSystem {
inherit system;
modules = [
./documentation.nix
./fonts.nix
./hosts/caladan/configuration.nix
./overlays
hosts.nixosModule {
networking.stevenBlackHosts = {
enable = true;
blockPorn = true;
};
}
home.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bkp";
home-manager.users.leto = import ./hosts/caladan/users.nix;
}
];
specialArgs = { inherit inputs system; };
};
euclid = lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs system; };
modules = [
impermanence.nixosModules.impermanence
#agenix.nixosModules.default {
# age.secrets."defaults.json".file = ./secrets/defaults.json.age;
# age.identity.paths = "/run/user/1000/gnupg/S.gpg-agent.ssh";
#}
./documentation.nix
./fonts.nix
./hosts/euclid/configuration.nix
hosts.nixosModule {
networking.stevenBlackHosts = {
enable = true;
blockPorn = true;
};
}
home.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.mbenevides = import ./hosts/euclid/home.nix;
}
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-l13
];
};
};
};
}