mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
sconfig = {
|
|
gnome = true;
|
|
desktop.enable = true;
|
|
horizon.enable = true;
|
|
};
|
|
|
|
environment.etc.machine-id.source = "/var/lib/nixos/machine-id";
|
|
|
|
services.openssh.hostKeys = [
|
|
{ type = "ed25519"; path = "/var/lib/nixos/ssh_host_ed25519_key"; }
|
|
];
|
|
|
|
users.mutableUsers = false;
|
|
users.users.sean.passwordFile = "/var/lib/nixos/shadow_sean";
|
|
users.users.root.passwordFile = "/var/lib/nixos/shadow_sean";
|
|
|
|
boot = {
|
|
loader.systemd-boot.enable = true;
|
|
loader.efi.canTouchEfiVariables = true;
|
|
kernelParams = map (x: "video=DP-${x}:1280x720@60") [ "0" "1" "2" ];
|
|
};
|
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
fileSystems = {
|
|
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; };
|
|
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
|
|
"/home" = { device = "cube/locker/home"; fsType = "zfs"; };
|
|
"/nix" = { device = "cube/locker/nix"; fsType = "zfs"; };
|
|
"/var/lib" = { device = "cube/locker/lib"; fsType = "zfs"; };
|
|
"/var/log" = { device = "cube/locker/log"; fsType = "zfs"; };
|
|
};
|
|
|
|
system.stateVersion = "22.05";
|
|
}
|