mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
remove old machine configs
This commit is contained in:
parent
29adc840a6
commit
e46bedb0f3
3 changed files with 0 additions and 118 deletions
|
@ -1,38 +0,0 @@
|
|||
{ 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";
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
{
|
||||
# $ xrandr --verbose
|
||||
# DisplayPort-0 connected primary 2560x1440+0+0 (0x5b) normal (normal left inverted right x axis y axis) 697mm x 392mm
|
||||
# 2560x1440 (0x5b) 646.280MHz +HSync -VSync *current
|
||||
# h: width 2560 start 2608 end 2640 total 2692 skew 0 clock 240.07KHz
|
||||
# v: height 1440 start 1443 end 1448 total 1455 clock 165.00Hz
|
||||
# DisplayPort-1 connected 2560x1440+2560+0 (0x7f) normal (normal left inverted right x axis y axis) 697mm x 392mm
|
||||
# 2560x1440 (0x7f) 650.030MHz +HSync -VSync *current
|
||||
# h: width 2560 start 2608 end 2640 total 2680 skew 0 clock 242.55KHz
|
||||
# v: height 1440 start 1443 end 1448 total 1470 clock 165.00Hz
|
||||
|
||||
services.xserver.extraConfig = ''
|
||||
Section "Monitor"
|
||||
Identifier "DisplayPort-0"
|
||||
Modeline "2560x1440_165.00" 664.0 2560 2608 2640 2700 1440 1443 1448 1490 +HSync +VSync
|
||||
Option "PreferredMode" "2560x1440_165.00"
|
||||
EndSection
|
||||
Section "Monitor"
|
||||
Identifier "DisplayPort-1"
|
||||
Modeline "2560x1440_165.00" 664.0 2560 2608 2640 2700 1440 1443 1448 1490 +HSync +VSync
|
||||
Option "PreferredMode" "2560x1440_165.00"
|
||||
EndSection
|
||||
'';
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
environment.etc =
|
||||
{
|
||||
"machine-id".source = "/var/lib/nixos/machine-id";
|
||||
|
||||
"NetworkManager/system-connections".source =
|
||||
"/var/lib/nixos/network-connections";
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [ "d /var/lib/nixos/network-connections 0700" ];
|
||||
|
||||
services.openssh.hostKeys = [
|
||||
{ type = "ed25519"; path = "/var/lib/nixos/ssh_host_ed25519_key"; }
|
||||
];
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users.root.passwordFile = "/nix/persist/shadow_sean";
|
||||
users.users.sean.passwordFile = "/nix/persist/shadow_sean";
|
||||
|
||||
sconfig = {
|
||||
gnome = true;
|
||||
desktop.enable = true;
|
||||
horizon.enable = true;
|
||||
wg-home.enable = true;
|
||||
};
|
||||
|
||||
zramSwap.memoryPercent = 100;
|
||||
|
||||
swapDevices = [{
|
||||
device = "/dev/disk/by-partuuid/e54894a7-f322-482c-b8f2-8e706f02f316";
|
||||
randomEncryption.enable = true;
|
||||
}];
|
||||
|
||||
boot = {
|
||||
loader.systemd-boot.enable = true;
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
initrd.postDeviceCommands = lib.mkAfter ''
|
||||
zfs rollback lenny/locker/tmproot@blank
|
||||
'';
|
||||
};
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
fileSystems = {
|
||||
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
|
||||
"/" = { device = "lenny/locker/tmproot"; fsType = "zfs"; };
|
||||
"/nix" = { device = "lenny/locker/nix"; fsType = "zfs"; };
|
||||
"/home" = { device = "lenny/locker/home"; fsType = "zfs"; };
|
||||
"/var/lib" = { device = "lenny/locker/lib"; fsType = "zfs"; };
|
||||
"/var/log" = { device = "lenny/locker/log"; fsType = "zfs"; };
|
||||
};
|
||||
|
||||
system.stateVersion = "22.05";
|
||||
}
|
Loading…
Reference in a new issue