-
Notifications
You must be signed in to change notification settings - Fork 0
/
machine.nix
67 lines (54 loc) · 1.19 KB
/
machine.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
{
pkgs,
inputs,
username,
...
}: {
imports = [
inputs.home-manager.nixosModules.home-manager
./nushell/mod.nix
./gitui/mod.nix
./helix/mod.nix
./xplr/mod.nix
./syncthing/mod.nix
];
networking.networkmanager.enable = true;
i18n = {
defaultLocale = "en_US.utf8";
supportedLocales = ["en_US.UTF-8/UTF-8" "unm_US/UTF-8"];
};
services.openssh.enable = true;
users.users.${username} = {
isNormalUser = true;
extraGroups = ["networkmanager" "wheel"];
};
environment.systemPackages = with pkgs; [
unixtools.whereis
wget
zip
unzip
git
gnupg
gpg-tui
pinentry-curses
dua
bottom
];
nix = {
package = pkgs.nixVersions.stable;
extraOptions = "experimental-features = nix-command flakes";
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
nixpkgs.config.allowUnfree = true;
nixpkgs.config.permittedInsecurePackages = [
"electron-27.3.11"
];
# The state versions are required and should stay at the version you
# originally installed.
system.stateVersion = "22.05";
home-manager.users.darksome.home.stateVersion = "24.05";
}