diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2024-11-05 20:51:25 -0700 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2024-11-05 20:51:25 -0700 |
| commit | efabb27a0604ad2c6f7a70c601b5480837801a06 (patch) | |
| tree | 536ef16fa66739f20148312f3c1df15c9f0cbf43 | |
| parent | 6ff62a2b220a5bcbad12b5a60a8b61d6fdd0aeab (diff) | |
| parent | cbcaca059177635d1c920ce3be385d5474a99a80 (diff) | |
Merge branch 'master' of ssh://git.myrmexia.xyz:2200/srv/git/.flake
| -rw-r--r-- | flake.lock | 199 | ||||
| -rw-r--r-- | machines/khad/configuration.nix | 4 | ||||
| -rw-r--r-- | machines/khad/hardware-configuration.nix | 55 | ||||
| -rw-r--r-- | modules/home-manager/hypridle.nix | 2 | ||||
| -rw-r--r-- | modules/home-manager/shell.nix | 1 | ||||
| -rw-r--r-- | modules/nixos/cgit.nix | 1 | ||||
| -rw-r--r-- | modules/users/defin.nix | 2 |
7 files changed, 190 insertions, 74 deletions
@@ -20,11 +20,11 @@ ] }, "locked": { - "lastModified": 1724006173, - "narHash": "sha256-1ROh0buuxiMyc6eIb3CIbJsmYO7PhLqSYs55mOx1XTk=", + "lastModified": 1729527199, + "narHash": "sha256-D5/YksfRga8Akd04ZtIkuYSIOjXVrAzQIQBSeplokzU=", "owner": "hyprwm", "repo": "aquamarine", - "rev": "7f8df01d4297b9068a9592400f16044602844f86", + "rev": "8d732fa8aff8b12ef2b1e2f00fc8153e41312b72", "type": "github" }, "original": { @@ -52,11 +52,11 @@ "catppuccin-alacritty": { "flake": false, "locked": { - "lastModified": 1721489199, - "narHash": "sha256-5MUWHXs8vfl2/u6YXB4krT5aLutVssPBr+DiuOdMAto=", + "lastModified": 1730074245, + "narHash": "sha256-H8bouVCS46h0DgQ+oYY8JitahQDj0V9p2cOoD4cQX+Q=", "owner": "catppuccin", "repo": "alacritty", - "rev": "343cf8d65459ac8f6449cc98dd3648bcbd7e3766", + "rev": "f6cb5a5c2b404cdaceaff193b9c52317f62c62f7", "type": "github" }, "original": { @@ -68,11 +68,11 @@ "catppuccin-bat": { "flake": false, "locked": { - "lastModified": 1722864529, - "narHash": "sha256-s0CHTihXlBMCKmbBBb8dUhfgOOQu9PBCQ+uviy7o47w=", + "lastModified": 1729267055, + "narHash": "sha256-x1yqPCWuoBSx/cI94eA+AWwhiSA42cLNUOFJl7qjhmw=", "owner": "catppuccin", "repo": "bat", - "rev": "d3feec47b16a8e99eabb34cdfbaa115541d374fc", + "rev": "d2bbee4f7e7d5bac63c054e4d8eca57954b31471", "type": "github" }, "original": { @@ -84,11 +84,11 @@ "catppuccin-btop": { "flake": false, "locked": { - "lastModified": 1715687124, - "narHash": "sha256-UXeTypc15MhjgGUiCrDUZ40m32yH2o1N+rcrEgY6sME=", + "lastModified": 1727050041, + "narHash": "sha256-mEGZwScVPWGu+Vbtddc/sJ+mNdD2kKienGZVUcTSl+c=", "owner": "catppuccin", "repo": "btop", - "rev": "21b8d5956a8b07fa52519e3267fb3a2d2e693d17", + "rev": "f437574b600f1c6d932627050b15ff5153b58fa3", "type": "github" }, "original": { @@ -145,6 +145,22 @@ "type": "github" } }, + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems_2" @@ -178,6 +194,28 @@ "type": "github" } }, + "gitignore": { + "inputs": { + "nixpkgs": [ + "hyprland", + "pre-commit-hooks", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1709087332, + "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", + "owner": "hercules-ci", + "repo": "gitignore.nix", + "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "gitignore.nix", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -185,11 +223,11 @@ ] }, "locked": { - "lastModified": 1720042825, - "narHash": "sha256-A0vrUB6x82/jvf17qPCpxaM+ulJnD8YZwH9Ci0BsAzE=", + "lastModified": 1726989464, + "narHash": "sha256-Vl+WVTJwutXkimwGprnEtXc/s/s8sMuXzqXaspIGlwM=", "owner": "nix-community", "repo": "home-manager", - "rev": "e1391fb22e18a36f57e6999c7a9f966dc80ac073", + "rev": "2f23fa308a7c067e52dfcc30a0758f47043ec176", "type": "github" }, "original": { @@ -215,11 +253,11 @@ ] }, "locked": { - "lastModified": 1722623071, - "narHash": "sha256-sLADpVgebpCBFXkA1FlCXtvEPu1tdEsTfqK1hfeHySE=", + "lastModified": 1728669738, + "narHash": "sha256-EDNAU9AYcx8OupUzbTbWE1d3HYdeG0wO6Msg3iL1muk=", "owner": "hyprwm", "repo": "hyprcursor", - "rev": "912d56025f03d41b1ad29510c423757b4379eb1c", + "rev": "0264e698149fcb857a66a53018157b41f8d97bb0", "type": "github" }, "original": { @@ -232,21 +270,23 @@ "inputs": { "aquamarine": "aquamarine", "hyprcursor": "hyprcursor", + "hyprland-protocols": "hyprland-protocols", "hyprlang": "hyprlang", "hyprutils": "hyprutils", "hyprwayland-scanner": "hyprwayland-scanner", "nixpkgs": [ "nixpkgs-unstable" ], + "pre-commit-hooks": "pre-commit-hooks", "systems": "systems", "xdph": "xdph" }, "locked": { - "lastModified": 1724085862, - "narHash": "sha256-y5NkPDQ9E9HAsYufldlZwQ71nKYW70i8GoHsIM4R/Rg=", + "lastModified": 1730143527, + "narHash": "sha256-oAHpNAIa6EKt3uTIxCbIbEsuPdvE8en1iIXlgLHDbps=", "owner": "hyprwm", "repo": "Hyprland", - "rev": "c86db7bbb0cf14d4955ee3a4d13c0ed9f8a0e0ae", + "rev": "d679d200299ed4670f0d0f138c793d5f507b7cec", "type": "github" }, "original": { @@ -259,21 +299,19 @@ "inputs": { "nixpkgs": [ "hyprland", - "xdph", "nixpkgs" ], "systems": [ "hyprland", - "xdph", "systems" ] }, "locked": { - "lastModified": 1721326555, - "narHash": "sha256-zCu4R0CSHEactW9JqYki26gy8h9f6rHmSwj4XJmlHgg=", + "lastModified": 1728345020, + "narHash": "sha256-xGbkc7U/Roe0/Cv3iKlzijIaFBNguasI31ynL2IlEoM=", "owner": "hyprwm", "repo": "hyprland-protocols", - "rev": "5a11232266bf1a1f5952d5b179c3f4b2facaaa84", + "rev": "a7c183800e74f337753de186522b9017a07a8cee", "type": "github" }, "original": { @@ -298,11 +336,11 @@ ] }, "locked": { - "lastModified": 1721324361, - "narHash": "sha256-BiJKO0IIdnSwHQBSrEJlKlFr753urkLE48wtt0UhNG4=", + "lastModified": 1728168612, + "narHash": "sha256-AnB1KfiXINmuiW7BALYrKqcjCnsLZPifhb/7BsfPbns=", "owner": "hyprwm", "repo": "hyprlang", - "rev": "adbefbf49664a6c2c8bf36b6487fd31e3eb68086", + "rev": "f054f2e44d6a0b74607a6bc0f52dba337a3db38e", "type": "github" }, "original": { @@ -323,11 +361,11 @@ ] }, "locked": { - "lastModified": 1722869141, - "narHash": "sha256-0KU4qhyMp441qfwbirNg3+wbm489KnEjXOz2I/RbeFs=", + "lastModified": 1728941256, + "narHash": "sha256-WRypmcZ2Bw94lLmcmxYokVOHPJSZ7T06V49QZ4tkZeQ=", "owner": "hyprwm", "repo": "hyprutils", - "rev": "0252fd13e78e60fb0da512a212e56007515a49f7", + "rev": "fd4be8b9ca932f7384e454bcd923c5451ef2aa85", "type": "github" }, "original": { @@ -348,11 +386,11 @@ ] }, "locked": { - "lastModified": 1721324119, - "narHash": "sha256-SOOqIT27/X792+vsLSeFdrNTF+OSRp5qXv6Te+fb2Qg=", + "lastModified": 1726874836, + "narHash": "sha256-VKR0sf0PSNCB0wPHVKSAn41mCNVCnegWmgkrneKDhHM=", "owner": "hyprwm", "repo": "hyprwayland-scanner", - "rev": "a048a6cb015340bd82f97c1f40a4b595ca85cc30", + "rev": "500c81a9e1a76760371049a8d99e008ea77aa59e", "type": "github" }, "original": { @@ -389,7 +427,7 @@ "narHash": "sha256-zNW/rqNJwhq2lYmQf19wJerRuNimjhxHKmzrWWFJYts=", "rev": "622a2253a071a1fb97a4d3c8103a91114acc1140", "type": "tarball", - "url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/622a2253a071a1fb97a4d3c8103a91114acc1140.tar.gz" + "url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/622a2253a071a1fb97a4d3c8103a91114acc1140.tar.gz?rev=622a2253a071a1fb97a4d3c8103a91114acc1140" }, "original": { "type": "tarball", @@ -417,11 +455,11 @@ }, "nixlib": { "locked": { - "lastModified": 1723942470, - "narHash": "sha256-QdSArN0xKESEOTcv+3kE6yu4B4WX9lupZ4+Htx3RXGg=", + "lastModified": 1729386149, + "narHash": "sha256-hUP9oxmnOmNnKcDOf5Y55HQ+NnoT0+bLWHLQWLLw9Ks=", "owner": "nix-community", "repo": "nixpkgs.lib", - "rev": "531a2e8416a6d8200a53eddfbdb8f2c8dc4a1251", + "rev": "cce4521b6df014e79a7b7afc58c703ed683c916e", "type": "github" }, "original": { @@ -438,11 +476,11 @@ ] }, "locked": { - "lastModified": 1724028932, - "narHash": "sha256-U11ZiQPrpIBdv7oS23bNdX9GCxe/hPf/ARr64P2Wj1Y=", + "lastModified": 1729472750, + "narHash": "sha256-s93LPHi5BN7I2xSGNAFWiYb8WRsPvT1LE9ZjZBrpFlg=", "owner": "nix-community", "repo": "nixos-generators", - "rev": "5fd22603892e4ec5ac6085058ed658243143aacd", + "rev": "7c60ba4bc8d6aa2ba3e5b0f6ceb9fc07bc261565", "type": "github" }, "original": { @@ -453,11 +491,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1723938990, - "narHash": "sha256-9tUadhnZQbWIiYVXH8ncfGXGvkNq3Hag4RCBEMUk7MI=", + "lastModified": 1730137625, + "narHash": "sha256-9z8oOgFZiaguj+bbi3k4QhAD6JabWrnv7fscC/mt0KE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "c42fcfbdfeae23e68fc520f9182dde9f38ad1890", + "rev": "64b80bfb316b57cdb8919a9110ef63393d74382a", "type": "github" }, "original": { @@ -482,13 +520,29 @@ "type": "github" } }, + "nixpkgs-stable": { + "locked": { + "lastModified": 1720386169, + "narHash": "sha256-NGKVY4PjzwAa4upkGtAMz1npHGoRzWotlSnVlqI40mo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "194846768975b7ad2c4988bdb82572c00222c0d7", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs-unstable": { "locked": { - "lastModified": 1723991338, - "narHash": "sha256-Grh5PF0+gootJfOJFenTTxDTYPidA3V28dqJ/WV7iis=", + "lastModified": 1729880355, + "narHash": "sha256-RP+OQ6koQQLX5nw0NmcDrzvGL8HDLnyXt/jHhL1jwjM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "8a3354191c0d7144db9756a74755672387b702ba", + "rev": "18536bf04cd71abd345f9579158841376fdd0c5a", "type": "github" }, "original": { @@ -501,11 +555,11 @@ "nushell-scripts": { "flake": false, "locked": { - "lastModified": 1716413736, - "narHash": "sha256-V2GL14M+MudPse1WFNhPL6Uvqjfm85n4J6dZki6uvzE=", + "lastModified": 1726006741, + "narHash": "sha256-mKp/s6njMnav1xoey6M7ONm643+QAekLgxqOLBF0Mp4=", "owner": "doolphin", "repo": "nu_scripts", - "rev": "3958f0ba7e3fd2762a01d6bb003fdfd4dd7598d8", + "rev": "86dec2666167dfe5d993e6032931f93afb7126e4", "type": "github" }, "original": { @@ -514,6 +568,30 @@ "type": "github" } }, + "pre-commit-hooks": { + "inputs": { + "flake-compat": "flake-compat", + "gitignore": "gitignore", + "nixpkgs": [ + "hyprland", + "nixpkgs" + ], + "nixpkgs-stable": "nixpkgs-stable" + }, + "locked": { + "lastModified": 1729104314, + "narHash": "sha256-pZRZsq5oCdJt3upZIU4aslS9XwFJ+/nVtALHIciX/BI=", + "owner": "cachix", + "repo": "git-hooks.nix", + "rev": "3c3e88f0f544d6bb54329832616af7eb971b6be6", + "type": "github" + }, + "original": { + "owner": "cachix", + "repo": "git-hooks.nix", + "type": "github" + } + }, "root": { "inputs": { "catppuccin-alacritty": "catppuccin-alacritty", @@ -581,11 +659,22 @@ }, "xdph": { "inputs": { - "hyprland-protocols": "hyprland-protocols", + "hyprland-protocols": [ + "hyprland", + "hyprland-protocols" + ], "hyprlang": [ "hyprland", "hyprlang" ], + "hyprutils": [ + "hyprland", + "hyprutils" + ], + "hyprwayland-scanner": [ + "hyprland", + "hyprwayland-scanner" + ], "nixpkgs": [ "hyprland", "nixpkgs" @@ -596,11 +685,11 @@ ] }, "locked": { - "lastModified": 1722365976, - "narHash": "sha256-Khdm+mDzYA//XaU0M+hftod+rKr5q9SSHSEuiQ0/9ow=", + "lastModified": 1728166987, + "narHash": "sha256-w6dVTguAn9zJ+7aPOhBQgDz8bn6YZ7b56cY8Kg5HJRI=", "owner": "hyprwm", "repo": "xdg-desktop-portal-hyprland", - "rev": "7f2a77ddf60390248e2a3de2261d7102a13e5341", + "rev": "fb9c8d665af0588bb087f97d0f673ddf0d501787", "type": "github" }, "original": { diff --git a/machines/khad/configuration.nix b/machines/khad/configuration.nix index 5da9614..c36c941 100644 --- a/machines/khad/configuration.nix +++ b/machines/khad/configuration.nix @@ -75,9 +75,9 @@ services.xserver.enable = true; - # # Enable the Plasma 5 Desktop Environment. + # # Enable the Plasma 6 Desktop Environment. services.displayManager.sddm.enable = true; - # services.xserver.desktopManager.plasma5.enable = true; + services.desktopManager.plasma6.enable = true; # Configure keymap in X11 diff --git a/machines/khad/hardware-configuration.nix b/machines/khad/hardware-configuration.nix index 62f1bd4..4cd618c 100644 --- a/machines/khad/hardware-configuration.nix +++ b/machines/khad/hardware-configuration.nix @@ -1,37 +1,64 @@ # 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, modulesPath, ... }: +{ config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/17bf776d-ed6d-4a80-831c-ddd65dec14fb"; + fileSystems."/boot" = { + label = "EFI"; + fsType = "vfat"; + }; + + fileSystems."/" = { + label = "nixos"; fsType = "btrfs"; - options = [ "subvol=@" ]; + options = [ "subvol=@root" "compress-force=zstd:3" "noatime" ]; }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/83FA-1F6E"; - fsType = "vfat"; + fileSystems."/home" = { + label = "nixos"; + fsType = "btrfs"; + options = [ "subvol=@home" "compress-force=zstd:3" "noatime" ]; }; - fileSystems."/home" = - { device = "/dev/disk/by-uuid/c6f221f0-f4c0-413e-821b-7363aa5c5f4c"; + fileSystems."/nix" = { + label = "nixos"; fsType = "btrfs"; + options = [ "subvol=@nix" "compress-force=zstd:3" "noatime" ]; }; - swapDevices = - [ { device = "/dev/disk/by-uuid/9b961057-79f7-4024-b1ec-16f9e8af7405"; } - ]; + fileSystems."/persist" = { + label = "nixos"; + fsType = "btrfs"; + options = [ "subvol=@persist" "compress-force=zstd:3" "noatime" ]; + }; + + fileSystems."/swap" = { + label = "nixos"; + fsType = "btrfs"; + options = [ "subvol=@swap" "compress-force=zstd:3" "noatime" ]; + }; + + fileSystems."/var/log" = { + label = "nixos"; + fsType = "btrfs"; + options = [ "subvol=@log" "compress-force=zstd:3" "noatime" ]; + }; + + + swapDevices = [{ + device = "/swap/swapfile"; + # size = 35 * 1024; # 35GB +}]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's @@ -39,7 +66,7 @@ # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. networking.useDHCP = lib.mkDefault true; # networking.interfaces.eno1.useDHCP = lib.mkDefault true; - # networking.interfaces.enp0s20u4.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/modules/home-manager/hypridle.nix b/modules/home-manager/hypridle.nix index b8fdb3d..d681961 100644 --- a/modules/home-manager/hypridle.nix +++ b/modules/home-manager/hypridle.nix @@ -36,7 +36,7 @@ } { timeout = 420; - on-timeout = "${brightnessSet} 0% && systemctl suspsend"; + on-timeout = "${brightnessSet} 0% && systemctl suspend"; on-resume = "brightnessctl -r"; } ]; diff --git a/modules/home-manager/shell.nix b/modules/home-manager/shell.nix index 6c6d566..2e48849 100644 --- a/modules/home-manager/shell.nix +++ b/modules/home-manager/shell.nix @@ -28,7 +28,6 @@ in { source ${nushell-scripts}/custom-completions/nix/nix-completions.nu source ${nushell-scripts}/custom-completions/man/man-completions.nu source ${nushell-scripts}/custom-completions/cargo/cargo-completions.nu - source ${nushell-scripts}/custom-completions/make/make-completions.nu source ${nushell-scripts}/custom-completions/git/git-completions.nu use ${nushell-scripts}/themes/nu-themes/catppuccin-mocha.nu $env.config = ($env.config | merge {color_config: (catppuccin-mocha)}) diff --git a/modules/nixos/cgit.nix b/modules/nixos/cgit.nix index a5b4013..c4ef76a 100644 --- a/modules/nixos/cgit.nix +++ b/modules/nixos/cgit.nix @@ -1,6 +1,7 @@ { config, pkgs, ... } : { # This is for hosting on bosco services.cgit = { "git.myrmexia.xyz" = { + user = "cgit"; enable = true; nginx.location = "/"; # nginx.virtualHost = "git.myrmexia.xyz"; diff --git a/modules/users/defin.nix b/modules/users/defin.nix index 0b6b06e..24863d6 100644 --- a/modules/users/defin.nix +++ b/modules/users/defin.nix @@ -30,7 +30,7 @@ }; }; - nix.settings.trusted-users = [ "@builders" ]; + # nix.settings.trusted-users = [ "@builders" ]; security.pam = { sshAgentAuth.enable = true; # services.sudo.sshAgentAuth = true; |
