-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
57 lines (38 loc) · 1.11 KB
/
default.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
{ config, pkgs, username, ... }:
let
secrets = import /etc/nixos/secrets.nix;
in
{
imports =
[
# fix vs code server
./linux/vscode-server.nix
# set locale
./linux/locale.nix
# set user and enable home-manager
(import ./home/users.nix { inherit config pkgs username; })
# set up ssh server
./linux/features/ssh.nix
./linux/features/direnv.nix
./linux/fonts.nix
];
# Enable flake support
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
users.users.${username} = {
isNormalUser = true;
description = "Filip Krul";
extraGroups = [ "networkmanager" "wheel" "nixeditors" "docker" "openvpn" ];
packages = with pkgs;
[ ];
shell = pkgs.fish;
home = "/home/${username}";
openssh.authorizedKeys.keys = secrets.authorizedSSHKeys;
hashedPassword = secrets.hashedPassword;
};
programs.nix-ld.enable = true;
# may break 16-bit apps
boot.kernel.sysctl = { "vm.max_map_count" = 2147483642; };
system.stateVersion = "23.11";
}