mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
networking.hostName = "cube";
|
|
|
|
# imports = [ ./monitors.nix ];
|
|
|
|
virtualisation.libvirtd.enable = true;
|
|
environment.systemPackages = with pkgs; [
|
|
virt-manager
|
|
];
|
|
|
|
sconfig = {
|
|
gnome = true;
|
|
profile = "desktop";
|
|
gaming.enable = true;
|
|
horizon.enable = true;
|
|
};
|
|
|
|
environment.etc =
|
|
lib.genAttrs
|
|
[
|
|
"machine-id"
|
|
"ssh/ssh_host_ed25519_key"
|
|
"ssh/ssh_host_rsa_key"
|
|
]
|
|
(name: { source = "/nix/persist/etc/${name}"; });
|
|
|
|
services.openssh.enable = true;
|
|
|
|
users.mutableUsers = false;
|
|
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
|
|
users.users.root.passwordFile = "/nix/persist/shadow_sean";
|
|
|
|
boot = {
|
|
loader.systemd-boot.enable = true;
|
|
loader.efi.canTouchEfiVariables = true;
|
|
kernelParams = map (x: "video=DP-${x}:1280x720@60") [ "0" "1" "2" ];
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; };
|
|
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
|
|
"/nix" = { device = "cube/locker/nix"; fsType = "zfs"; };
|
|
"/home" = { device = "cube/locker/home"; fsType = "zfs"; };
|
|
"/var/log" = { device = "cube/locker/log"; fsType = "zfs"; };
|
|
"/var/lib/libvirt" = { device = "cube/locker/libvirt"; fsType = "zfs"; };
|
|
};
|
|
|
|
system.stateVersion = "21.11";
|
|
}
|