feat: switched desktop
feat: sway is running
This commit is contained in:
parent
b0a8e65480
commit
a4a076b901
|
@ -83,6 +83,11 @@
|
|||
- Alternatively boot an official nixos image connect with password
|
||||
3. Copy ISO to usb using dd
|
||||
3. After booting copy the installer to the live system using `nix copy --to <target> .#packages.<target-system>.installer-package.<target>`
|
||||
4. Run the installer script from the nix store of the live system
|
||||
- you can get the path using `nix path-info .#packages.<target-system>.installer-package.<target>`
|
||||
4. Export all zpools and reboot into system
|
||||
6. Retrieve hostkeys using `ssh-keyscan <host> | grep -o 'ssh-ed25519.*' > host/<target>/secrets/host.pub
|
||||
5. Deploy system using colmena
|
||||
|
||||
|
||||
## Deploy
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{lib, ...}: {
|
||||
networking = {
|
||||
useNetworkd = true;
|
||||
dhcpcd.enable = false;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
boot = {
|
||||
initrd.systemd.enable = true;
|
||||
initrd.systemd.emergencyAccess = true;
|
||||
initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc"];
|
||||
initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" "ahci" "uas"];
|
||||
supportedFilesystems = ["ntfs"];
|
||||
kernelModules = ["kvm-intel"];
|
||||
tmp.useTmpfs = true;
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
programs.hyprland.enable = true;
|
||||
programs.hyprland = {
|
||||
enableNvidiaPatches = true;
|
||||
enable = true;
|
||||
};
|
||||
services.dbus.enable = true;
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
|
|
|
@ -4,14 +4,13 @@
|
|||
hardware = {
|
||||
opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
nvidia = {
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
finegrained = true;
|
||||
};
|
||||
powerManagement.enable = true;
|
||||
modesetting.enable = true;
|
||||
open = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
../common/hardware/bluetooth.nix
|
||||
../common/hardware/intel.nix
|
||||
../common/hardware/nvidia.nix
|
||||
../common/hardware/physical.nix
|
||||
../common/hardware/pipewire.nix
|
||||
../common/hardware/yubikey.nix
|
||||
|
|
|
@ -47,4 +47,6 @@
|
|||
panzer = defaultZpoolOptions // {datasets = {};};
|
||||
};
|
||||
};
|
||||
boot.initrd.luks.devices.enc-rpool.allowDiscards = true;
|
||||
boot.initrd.luks.devices.enc-infantry-fighting-vehicle.allowDiscards = true;
|
||||
}
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
DHCP = "yes";
|
||||
matchConfig.MACAddress = config.secrets.secrets.local.networking.lan1.mac;
|
||||
dns = ["192.168.178.2"];
|
||||
networkConfig = {
|
||||
IPv6PrivacyExtensions = "yes";
|
||||
MulticastDNS = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
0
hosts/desktopnix/secrets/host.pub
Normal file
0
hosts/desktopnix/secrets/host.pub
Normal file
Binary file not shown.
|
@ -23,4 +23,5 @@
|
|||
rpool = defaultZpoolOptions // {datasets = defaultZfsDatasets;};
|
||||
};
|
||||
};
|
||||
boot.initrd.luks.devices.enc-rpool.allowDiscards = true;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
partitions = [
|
||||
(partEfiBoot "boot" "0%" "1GiB")
|
||||
(partSwap "swap" "1GiB" "17GiB")
|
||||
(partLuksZfs "rpool" "rpool" "17GiB" "100%")
|
||||
(lib.attrsets.recursiveUpdate (partLuksZfs "rpool" "rpool" "17GiB" "100%") {content.extraFormatArgs = ["--pbkdf pbkdf2"];})
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -25,7 +25,7 @@
|
|||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
(partLuksZfs "panzer-1" "panzer" "0%" "100%")
|
||||
(lib.attrsets.recursiveUpdate (partLuksZfs "panzer-1" "panzer" "0%" "100%") {content.extraFormatArgs = ["--pbkdf pbkdf2"];})
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -36,7 +36,7 @@
|
|||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
(partLuksZfs "panzer-2" "panzer" "0%" "100%")
|
||||
(lib.attrsets.recursiveUpdate (partLuksZfs "panzer-2" "panzer" "0%" "100%") {content.extraFormatArgs = ["--pbkdf pbkdf2"];})
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -54,4 +54,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices.enc-rpool.allowDiscards = true;
|
||||
}
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
DHCP = "yes";
|
||||
matchConfig.MACAddress = config.secrets.secrets.local.networking.lan1.mac;
|
||||
dns = ["192.168.178.2"];
|
||||
networkConfig = {
|
||||
IPv6PrivacyExtensions = "yes";
|
||||
MulticastDNS = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
1
hosts/testienix/secrets/host.pub
Normal file
1
hosts/testienix/secrets/host.pub
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB9g6E+f7XMSE4V2YDdw5kZjWpV9o1G4JPKb6f3SHjO4
|
|
@ -28,7 +28,7 @@ inputs: self: super: {
|
|||
content = {
|
||||
type = "luks";
|
||||
name = "enc-${name}";
|
||||
extraOpenArgs = ["--allow-discard"];
|
||||
extraOpenArgs = ["--allow-discards"];
|
||||
content = {
|
||||
type = "zfs";
|
||||
inherit pool;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./graphical/kitty.nix
|
||||
./graphical/hyprland
|
||||
./graphical/rofi.nix
|
||||
./graphical/firefox.nix
|
||||
./kitty.nix
|
||||
./sway
|
||||
./rofi.nix
|
||||
./firefox.nix
|
||||
];
|
||||
home = {
|
||||
packages = with pkgs; [
|
|
@ -83,6 +83,12 @@ MOD: TAGS: pkgs:
|
|||
workspace = eDP-1, 42
|
||||
|
||||
exec-once=bash -c "waybar >/tmp/waybar_error.log"
|
||||
env = LIBVA_DRIVER_NAME,nvidia
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = GBM_BACKEND,nvidia-drm
|
||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||
env = WLR_NO_HARDWARE_CURSORS,1
|
||||
|
||||
''
|
||||
+ builtins.concatStringsSep "\n" (map (
|
||||
x: ''
|
||||
|
|
9
users/common/graphical/sway/default.nix
Normal file
9
users/common/graphical/sway/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{config, ...}: {
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
config = {
|
||||
modifier = "Mod4";
|
||||
terminal = "kitty";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -24,6 +24,5 @@ _: {
|
|||
rg = "rg -S";
|
||||
|
||||
zf = "zathura --fork";
|
||||
hypr = "Hyprland";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
}: {
|
||||
# enable nixos wide hyprland config
|
||||
imports = [
|
||||
../../hosts/common/graphical/hyprland.nix
|
||||
#../../hosts/common/graphical/hyprland.nix
|
||||
];
|
||||
|
||||
users.users.patrick = {
|
||||
|
@ -31,7 +31,7 @@
|
|||
./impermanence.nix
|
||||
../common
|
||||
../common/interactive.nix
|
||||
../common/graphical.nix
|
||||
../common/graphical
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -16,12 +16,25 @@
|
|||
user = "root";
|
||||
inherit identityFile;
|
||||
};
|
||||
|
||||
"patricknix" = {
|
||||
hostname = "patricknix.local";
|
||||
user = "root";
|
||||
inherit identityFile;
|
||||
};
|
||||
|
||||
"testienix" = {
|
||||
hostname = "192.168.178.74";
|
||||
user = "root";
|
||||
inherit identityFile;
|
||||
};
|
||||
|
||||
"desktopnix" = {
|
||||
hostname = "192.168.178.176";
|
||||
user = "root";
|
||||
inherit identityFile;
|
||||
};
|
||||
|
||||
"WSALVM" = {
|
||||
hostname = "172.10.8.156";
|
||||
user = "root";
|
||||
|
|
Loading…
Reference in a new issue