nixos-config/hosts/cube/default.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2022-03-07 16:10:35 +00:00
{ config, lib, pkgs, ... }:
2021-06-28 03:47:41 +00:00
{
2021-12-10 06:34:46 +00:00
networking.hostName = "cube";
2022-01-28 23:22:21 +00:00
# imports = [ ./monitors.nix ];
2021-12-30 15:18:50 +00:00
2022-04-07 17:44:09 +00:00
virtualisation.libvirtd.enable = true;
environment.systemPackages = with pkgs; [
virt-manager
];
2021-06-28 03:47:41 +00:00
sconfig = {
2021-09-07 02:36:43 +00:00
gnome = true;
2021-06-28 03:47:41 +00:00
profile = "desktop";
2022-01-14 20:02:18 +00:00
gaming.enable = true;
2022-03-03 15:46:24 +00:00
horizon.enable = true;
2021-06-28 03:47:41 +00:00
};
2021-12-04 02:45:41 +00:00
environment.etc =
2022-03-07 16:10:35 +00:00
lib.genAttrs
2021-12-04 02:45:41 +00:00
[
"machine-id"
"ssh/ssh_host_ed25519_key"
"ssh/ssh_host_rsa_key"
2022-03-07 16:10:35 +00:00
]
(name: { source = "/nix/persist/etc/${name}"; });
2021-08-13 21:13:00 +00:00
2021-06-28 03:47:41 +00:00
services.openssh.enable = true;
2021-08-14 00:05:30 +00:00
users.mutableUsers = false;
2021-12-09 01:46:09 +00:00
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
users.users.root.passwordFile = "/nix/persist/shadow_sean";
2021-08-14 00:05:30 +00:00
2021-06-28 03:47:41 +00:00
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
kernelParams = map (x: "video=DP-${x}:1280x720@60") [ "0" "1" "2" ];
};
fileSystems = {
2021-08-13 21:13:00 +00:00
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; };
2021-06-28 03:47:41 +00:00
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
2021-08-13 21:13:00 +00:00
"/nix" = { device = "cube/locker/nix"; fsType = "zfs"; };
2021-12-09 01:46:09 +00:00
"/home" = { device = "cube/locker/home"; fsType = "zfs"; };
"/var/log" = { device = "cube/locker/log"; fsType = "zfs"; };
2022-04-07 17:44:09 +00:00
"/var/lib/libvirt" = { device = "cube/locker/libvirt"; fsType = "zfs"; };
2021-12-08 19:52:41 +00:00
};
2021-06-28 03:47:41 +00:00
2021-12-09 01:46:09 +00:00
system.stateVersion = "21.11";
2021-06-28 03:47:41 +00:00
}