-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.nix
63 lines (52 loc) · 1.32 KB
/
base.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
{
inputs,
lib,
pkgs,
config,
...
}: {
imports = [
inputs.stylix.nixosModules.stylix
inputs.home-manager.nixosModules.home-manager
inputs.sops-nix.nixosModules.sops
];
nix.settings.experimental-features = "nix-command flakes";
boot.kernelPackages = pkgs.linuxPackages_latest;
# nix.gc = {
# automatic = true;
# dates = "daily";
# options = "--delete-older-than 7d";
# };
# Set your time zone.
time.timeZone = "Europe/Berlin";
# Configure console keymap
console.keyMap = lib.mkDefault "us";
nix.extraOptions = ''
trusted-users = root lua
'';
users.mutableUsers = false;
sops = {
defaultSopsFile = ./secrets.yaml;
age.sshKeyPaths = ["/home/lua/.ssh/id_ed25519" "/etc/ssh/ssh_host_ed25519_key"];
age.keyFile = "/home/lua/.config/sops/age/keys.txt";
secrets = {
hashedPassword.neededForUsers = true;
};
};
users.users.lua = {
isNormalUser = true;
description = "Lua";
hashedPasswordFile = config.sops.secrets.hashedPassword.path;
extraGroups = ["networkmanager" "wheel"];
};
home-manager = {
backupFileExtension = "back";
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit inputs;};
};
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/nord.yaml";
};
}