This repository was archived by the owner on Dec 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
123 lines (99 loc) · 2.38 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{ config, pkgs, ... }:
{
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
environment.sessionVariables.FLAKE = "/home/jvzr/NixOS";
imports =
[
./hardware-configuration.nix
];
nixpkgs.config.allowUnfree = true;
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.timeout = 2;
boot.initrd.luks.devices = {
nixenc = {
device = "/dev/disk/by-uuid/f89c7c1c-929b-45a2-9836-ff4eb66793cb";
preLVM = true;
};
};
boot.kernelPackages = pkgs.linuxPackages_latest;
# Set your time zone.
time.timeZone = "Europe/Paris";
# Select internationalisation properties.
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [
"C.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
"fr_FR.UTF-8/UTF-8"
];
};
environment.systemPackages = with pkgs; [
dconf
git
nixpkgs-fmt
ripgrep
];
services.fwupd = {
enable = true;
extraRemotes = [
"lvfs-testing"
];
};
services.flatpak.enable = true;
users.users.jvzr = {
isNormalUser = true;
extraGroups = [ "wheel" ];
packages = (import ./packages.nix pkgs);
};
# programs.fish.enable = true;
networking = {
hostName = "fwk";
wireless.iwd = {
enable = true;
settings = {
General = {
EnableNetworkingConfiguration = true;
UseDefaultInterface = true;
AddressRandomization = "network";
RoamRetryInterval = 15;
};
};
};
networkmanager = {
enable = true;
wifi.backend = "iwd";
};
};
systemd.services.NetworkManager-wait-online.enable = false;
services.tailscale.enable = true;
services.syncthing = {
enable = true;
user = "jvzr";
dataDir = "/home/jvzr/Sync";
configDir = "/home/jvzr/.config/syncthing";
};
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
services.printing.enable = true;
services.printing.drivers = [ pkgs.hplip ];
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
system.stateVersion = "23.05"; # Did you read the comment?
}