diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-03-25 16:21:46 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-03-25 16:21:46 -0400 |
| commit | a1bf814a67e191a6b8573335700395e8ab57137f (patch) | |
| tree | 756f8227efd556e3e9fbd457c3281406ca272393 | |
| parent | 9f1670e88e11fb08a0d968f40cb9f05ccfb1a140 (diff) | |
the meowchine
| -rw-r--r-- | flake.nix | 11 | ||||
| -rw-r--r-- | hosts/the-meowchine/default.nix | 23 | ||||
| -rw-r--r-- | hosts/the-meowchine/hardware-configuration.nix | 44 | ||||
| -rw-r--r-- | modules/user/desktop/sessions/sway.nix | 10 |
4 files changed, 86 insertions, 2 deletions
@@ -28,7 +28,7 @@ { additionalModules ? [ ], hostName, - system, + system ? "x86_64-linux", }: nixpkgs.lib.nixosSystem { modules = [ @@ -46,6 +46,14 @@ { formatter.x86_64-linux = pkgs.nixfmt; nixosConfigurations = { + the-meowchine = mkSystem { + additionalModules = [ + home-manager.nixosModules.home-manager + ]; + + hostName = "the-meowchine"; + }; + meowbook = mkSystem { additionalModules = [ disko.nixosModules.disko @@ -53,7 +61,6 @@ ]; hostName = "meowbook"; - system = "x86_64-linux"; }; }; }; diff --git a/hosts/the-meowchine/default.nix b/hosts/the-meowchine/default.nix new file mode 100644 index 0000000..b1c15ea --- /dev/null +++ b/hosts/the-meowchine/default.nix @@ -0,0 +1,23 @@ +{ config, ... }: +{ + home-manager.users.rosa = { + imports = [ ../../modules/user ]; + desktop.sessions.sway.enable = true; + editors.kakoune.enable = true; + home = { + homeDirectory = "/home/rosa"; + stateVersion = "23.05"; + username = "rosa"; + }; + }; + + networking.networkmanager.enable = true; + programs.sway.enable = true; + security.doas.enable = true; + system = { + enableDesktopDefaults = true; + stateVersion = "23.05"; + }; + + users.users.rosa.enable = true; +} diff --git a/hosts/the-meowchine/hardware-configuration.nix b/hosts/the-meowchine/hardware-configuration.nix new file mode 100644 index 0000000..2614284 --- /dev/null +++ b/hosts/the-meowchine/hardware-configuration.nix @@ -0,0 +1,44 @@ +# 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 = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/4602324b-c9d4-43f5-afb7-145d0f3bddcb"; + fsType = "btrfs"; + options = [ "subvol=@rootfs" ]; + }; + + fileSystems."/etc" = + { device = "/dev/disk/by-uuid/4602324b-c9d4-43f5-afb7-145d0f3bddcb"; + fsType = "btrfs"; + options = [ "subvol=@etc" ]; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/4602324b-c9d4-43f5-afb7-145d0f3bddcb"; + fsType = "btrfs"; + options = [ "subvol=@homes" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/A8C6-E3EB"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/modules/user/desktop/sessions/sway.nix b/modules/user/desktop/sessions/sway.nix index 70387ce..d354324 100644 --- a/modules/user/desktop/sessions/sway.nix +++ b/modules/user/desktop/sessions/sway.nix @@ -195,6 +195,16 @@ #bg = "~/.local/share/wallpaper.png fill"; scale = "1.5"; }; + + "DP-1" = { + #bg = "~/.local/share/wallpaper.png fill"; + pos = "0 0"; + }; + + "DP-2" = { + #bg = "~/.local/share/wallpaper.png fill"; + pos = "1920 0"; + }; }; window = { |
