-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.nix
67 lines (54 loc) · 1.9 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
{
lib,
pkgs,
...
}: {
imports = [./modules/apps.nix ./modules/services.nix ./modules/programs.nix];
nixpkgs.config.allowUnfree = true;
networking = {
hostName = "nixos-invertedecho";
useDHCP = lib.mkDefault true;
};
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
users.users.echo = {
isNormalUser = true;
extraGroups = ["wheel" "kvm" "adbusers" "libvirtd"];
shell = pkgs.zsh;
hashedPassword = "$y$j9T$kSZUSuNWFeX4o6GlPHxk20$Pcc5XjIXXCYGh/B4fqRK/zLsEYpRpRsiP9p5oLiFCC2";
};
environment.sessionVariables = {
NIXOS_OZONE_WL = "1"; # enable ozone wayland support for electron based applications
PKG_CONFIG_PATH = "${pkgs.openssl}/lib/pkgconfig/"; # fix some packages not finding openssl lib
};
fonts.packages = with pkgs; [(nerdfonts.override {fonts = ["JetBrainsMono"];})];
nixpkgs.config.permittedInsecurePackages = ["electron-24.8.6"];
networking.wireless.iwd.enable = true;
nix.settings.experimental-features = ["nix-command" "flakes"];
security.polkit.enable = true;
# TODO: i think starting hyprland manually does not trigger the graphical-session.target
# also starting manually from hyprland exec-once, so this is probably stupid
systemd = {
user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
wantedBy = ["graphical-session.target"];
wants = ["graphical-session.target"];
after = ["graphical-session.target"];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
boot.binfmt =
if (pkgs.system != "aarch64-linux")
then {
preferStaticEmulators = true;
emulatedSystems = ["aarch64-linux"];
}
else {};
system.stateVersion = "23.11";
}