From 6877a8da807737181a0a1e9a0ebbb9bfa98d5277 Mon Sep 17 00:00:00 2001 From: lucy Date: Tue, 1 Sep 2026 11:53:20 +0000 Subject: [PATCH 1/2] add seele host --- flake.nix | 4 +++ modules/hosts/seele/configuration.nix | 16 +++++++++ .../hosts/seele/hardware-configuration.nix | 33 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 modules/hosts/seele/configuration.nix create mode 100644 modules/hosts/seele/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index 6748377..54b5618 100644 --- a/flake.nix +++ b/flake.nix @@ -55,7 +55,11 @@ ] ++ boilerplate; }; + nixosConfigurations.seele = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs; }; +modules = [./modules/hosts/seele/configurations.nix] ++ boilerplate; +}; }; } diff --git a/modules/hosts/seele/configuration.nix b/modules/hosts/seele/configuration.nix new file mode 100644 index 0000000..0deafc7 --- /dev/null +++ b/modules/hosts/seele/configuration.nix @@ -0,0 +1,16 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page, on +# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). + +{ config, lib, pkgs, ... }: + +{ + imports = + [ # Include the results of the hardware scan. + ./hardware-configuration.nix + ../base/configuration.nix + ]; + + networking.hostName = "seele"; # Define your hostname. +} + diff --git a/modules/hosts/seele/hardware-configuration.nix b/modules/hosts/seele/hardware-configuration.nix new file mode 100644 index 0000000..b7b2863 --- /dev/null +++ b/modules/hosts/seele/hardware-configuration.nix @@ -0,0 +1,33 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/8e26be6b-4dff-4c85-9ab8-4765e1b2b581"; + fsType = "xfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9472-595A"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/db947ed5-ae76-4cd6-8430-5fd4d3efab5f"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} From f4fd086641800924b6e131c74208b592631a77bb Mon Sep 17 00:00:00 2001 From: lucy Date: Tue, 1 Sep 2026 14:14:30 +0200 Subject: [PATCH 2/2] add laptop host and fix niri gaps --- flake.nix | 2 +- modules/hosts/seele/configuration.nix | 4 ---- modules/programs/niri.nix | 6 +++++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 54b5618..1a67bc1 100644 --- a/flake.nix +++ b/flake.nix @@ -57,7 +57,7 @@ }; nixosConfigurations.seele = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; }; -modules = [./modules/hosts/seele/configurations.nix] ++ boilerplate; +modules = [./modules/hosts/seele/configuration.nix] ++ boilerplate; }; }; diff --git a/modules/hosts/seele/configuration.nix b/modules/hosts/seele/configuration.nix index 0deafc7..c448947 100644 --- a/modules/hosts/seele/configuration.nix +++ b/modules/hosts/seele/configuration.nix @@ -1,7 +1,3 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page, on -# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). - { config, lib, pkgs, ... }: { diff --git a/modules/programs/niri.nix b/modules/programs/niri.nix index 1cc4a54..e4bd35f 100644 --- a/modules/programs/niri.nix +++ b/modules/programs/niri.nix @@ -45,10 +45,14 @@ output "Dell Inc. DELL P2317H 9KFDW6C533DB" { position x=0 y=0 } + output "Samsung Display Corp. 0x4208 Unknown" { + scale 1 + position x=0 y=0 + } layout { - gaps 16 + gaps 10 center-focused-column "never" default-column-width { proportion 0.5; } focus-ring {