nixos-config/hosts/cube/configuration.nix

60 lines
1.6 KiB
Nix
Raw Normal View History

2021-06-28 03:47:41 +00:00
{ pkgs, ... }:
{
sconfig = {
gnome = true;
profile = "desktop";
security-tools = true;
2021-08-30 20:36:01 +00:00
i3.extraConfig = ''
exec xrandr --output DisplayPort-0 --mode 2560x1440 --rate 165
exec xrandr --output DisplayPort-1 --mode 2560x1440 --rate 165
'';
2021-06-28 03:47:41 +00:00
};
2021-08-28 06:39:24 +00:00
environment.etc."sway/config.d/sconfig.conf".source = pkgs.writeText "sway.conf" ''
output DP-1 position 0 0 resolution 2560x1440@165Hz
output DP-2 position 2560 0 resolution 2560x1440@165Hz
'';
2021-08-13 21:13:00 +00:00
environment.persistence."/persist" = {
files = [
"/etc/machine-id"
"/etc/ssh/ssh_host_ed25519_key.pub"
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_rsa_key.pub"
"/etc/ssh/ssh_host_rsa_key"
];
directories = [
"/home"
"/var/log"
];
};
2021-06-28 03:47:41 +00:00
networking.search = [ "bck.me" ];
environment.systemPackages = with pkgs; [
wine
vmware-horizon-client
];
services.openssh.enable = true;
2021-08-14 00:05:30 +00:00
users.mutableUsers = false;
users.users.sean.passwordFile = "/persist/shadow/sean";
users.users.root.passwordFile = "/persist/shadow/sean";
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-08-14 00:05:30 +00:00
"/persist" = { device = "cube/locker/persist"; fsType = "zfs"; neededForBoot = true; };
2021-06-28 03:47:41 +00:00
};
system.stateVersion = "21.05";
}