diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-12 18:40:38 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-12 18:40:38 +0100 |
commit | ae278d745dd8eca94374b27c1fa9a977e54c23c2 (patch) | |
tree | 934702c425a46496b046579b6f3f4bacada36e4a /installer/default.nix | |
parent | 1f4ff029be789298f7732d6f2a153a234cbb5267 (diff) | |
download | nixos-ae278d745dd8eca94374b27c1fa9a977e54c23c2.tar nixos-ae278d745dd8eca94374b27c1fa9a977e54c23c2.tar.gz nixos-ae278d745dd8eca94374b27c1fa9a977e54c23c2.tar.bz2 nixos-ae278d745dd8eca94374b27c1fa9a977e54c23c2.tar.xz nixos-ae278d745dd8eca94374b27c1fa9a977e54c23c2.zip |
vidhar: netboot installer
Diffstat (limited to 'installer/default.nix')
-rw-r--r-- | installer/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/installer/default.nix b/installer/default.nix new file mode 100644 index 00000000..bf09c8d8 --- /dev/null +++ b/installer/default.nix | |||
@@ -0,0 +1,32 @@ | |||
1 | { flake, pkgs, ... }: { | ||
2 | imports = with flake.nixosModules.systemProfiles; [ | ||
3 | default-locale zfs networkmanager openssh | ||
4 | ]; | ||
5 | |||
6 | config = { | ||
7 | networking = { | ||
8 | firewall.enable = false; | ||
9 | nftables = { | ||
10 | enable = true; | ||
11 | rulesetFile = ./ruleset.nft; | ||
12 | }; | ||
13 | }; | ||
14 | |||
15 | services.openssh = { | ||
16 | enable = true; | ||
17 | staticHostKeys = false; | ||
18 | }; | ||
19 | |||
20 | services.qemuGuest.enable = true; | ||
21 | |||
22 | services.resolved = { | ||
23 | llmnr = "false"; | ||
24 | }; | ||
25 | |||
26 | environment.systemPackages = with pkgs; [ | ||
27 | nvme-cli iotop mosh | ||
28 | ]; | ||
29 | |||
30 | zramSwap.enable = true; | ||
31 | }; | ||
32 | } | ||