-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.nix
105 lines (91 loc) · 2.66 KB
/
lib.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{ inputs, ... }:
{
nixosSystem =
{
homedir ? "/home/joshua",
system,
hostname,
ssh-identities,
overlays,
}:
let
inherit (inputs) home-manager nixos-hardware;
in
inputs.nixpkgs.lib.nixosSystem {
inherit system;
modules = [
{
imports =
(with nixos-hardware.nixosModules; [
common-cpu-amd
common-gpu-amd
common-pc-ssd
])
++ [
./hosts/${hostname}/configuration.nix
./hosts/${hostname}/hardware-configuration.nix
]
++ (import ./modules/common)
++ (import ./modules/nixos);
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = overlays;
hardware.enableAllFirmware = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = false;
settings.General.Experimental = true; # for gnome-bluetooth percentage
};
boot.consoleLogLevel = 3;
boot.tmp.cleanOnBoot = true;
boot.supportedFilesystems = [
"zfs"
"ntfs"
];
boot.loader.grub = {
enable = true;
devices = [ "nodev" ];
efiInstallAsRemovable = true;
efiSupport = true;
useOSProber = true;
};
networking.networkmanager.enable = true;
networking.firewall.enable = false;
security.polkit = {
enable = true;
debug = true;
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
# Enable CUPS to print documents.
# services.printing.enable = true;
services.openssh.enable = true;
services.keybase.enable = true;
services.logind.extraConfig = ''
HandlePowerKey=suspend
'';
virtualisation.docker.enable = true;
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "23.11";
}
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
verbose = true;
users.joshua = {
imports = (import ./hm-modules/common) ++ (import ./hm-modules/nixos);
};
extraSpecialArgs = {
inherit inputs homedir ssh-identities;
};
};
}
];
specialArgs = {
inherit inputs;
};
};
}