-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.nix
executable file
·107 lines (85 loc) · 2.14 KB
/
configuration.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
106
{ config, lib, pkgs, machine-settings, secrets, ... }: let
in {
nixpkgs.config = {
allowUnfree = true;
allowBroken = true;
};
nixpkgs.config.permittedInsecurePackages = [
"electron-25.9.0"
];
# should fix nmtui not saving network info problem :pray:
services.gnome.gnome-keyring.enable = true;
# Make FHS work
virtualisation.podman.enable = true;
# services.fhs-compat.enable = true;
users.users.root.initialHashedPassword = secrets.passwd;
networking.networkmanager.enable = true;
environment.defaultPackages = lib.mkForce [];
environment.systemPackages = with pkgs; [
# Setup home-manager
home-manager
# Audio
pipewire
# Edit Files
vim
neovim
helix
# Get files from the web
wget
git
# Look up stuff
comma
# See system info
hyfetch
# Verify commits and such
gnupg
pinentry-curses
# Replace coreutils
# busybox
# for zipping/unzipping
p7zip
zip
unzip
xfce.thunar
kitty
];
environment.sessionVariables = rec {
EDITOR = "hx";
};
# Stupid stupid git thing
# https://github.com/NixOS/nixpkgs/issues/24311
environment.extraInit = ''
# Do not want this in the environment. NixOS always sets it and does not
# provide any option not to, so I must unset it myself via the
# environment.extraInit option.
unset -v SSH_ASKPASS
'';
# GNUPG
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "curses";
enableSSHSupport = true;
};
# Remove old builds
nix.settings.auto-optimise-store = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
nix.extraOptions = ''
min-free = ${toString (1024 * 1024 * 1024)}
max-free = ${toString (10 * 1024 * 1024 * 1024)}
'';
system.autoUpgrade.enable = true;
system.stateVersion = machine-settings.stateVersion;
environment.persistence."/nix/persist/systems" = {
hideMounts = true;
directories = [
"/etc/NetworkManager"
];
files = [];
};
nix.settings.trusted-users = [ "root" "lemon" "orange" "pumpkin" ];
}