From 27abf106d6cd284cf1f01821561ad75347231182 Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Wed, 6 Nov 2024 03:13:33 +0100 Subject: [PATCH 01/14] 235 current 2024-11-06 03:13:27 24.05.20241026.cd3e883 6.11.5 * --- flake.nix | 5 +-- hosts/crocoite/hardware-configuration.nix | 2 +- hosts/factorio/hardware-configuration.nix | 37 ++++++++++++----------- modules/sec_auth/login-manager.nix | 14 ++++----- modules/software/software.nix | 1 + 5 files changed, 32 insertions(+), 27 deletions(-) diff --git a/flake.nix b/flake.nix index 05175e9..2ab5d79 100644 --- a/flake.nix +++ b/flake.nix @@ -74,8 +74,9 @@ # NixOS configuration entrypoint # Available through 'nixos-rebuild --flake .#your-hostname' - nixosConfigurations = host_helper "crocoite" # // (host_helper example); - // host_helper "factorio"; + nixosConfigurations = + host_helper "crocoite" # // (host_helper example); + // host_helper "factorio"; ## Standalone home-manager configuration entrypoint ## Available through 'home-manager --flake .#your-username@your-hostname' diff --git a/hosts/crocoite/hardware-configuration.nix b/hosts/crocoite/hardware-configuration.nix index 3ff12fe..273c87e 100644 --- a/hosts/crocoite/hardware-configuration.nix +++ b/hosts/crocoite/hardware-configuration.nix @@ -12,7 +12,7 @@ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = ["nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.availableKernelModules = ["nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"]; boot.initrd.kernelModules = []; boot.kernelModules = ["kvm-amd"]; boot.extraModulePackages = []; diff --git a/hosts/factorio/hardware-configuration.nix b/hosts/factorio/hardware-configuration.nix index 23d07ad..daf8eca 100644 --- a/hosts/factorio/hardware-configuration.nix +++ b/hosts/factorio/hardware-configuration.nix @@ -1,26 +1,30 @@ # 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 + "/profiles/qemu-guest.nix") - ]; + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; - boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"]; + boot.initrd.kernelModules = []; + boot.kernelModules = []; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/a6c22dab-a82a-4109-a8d0-b7ed99d56bc7"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/a6c22dab-a82a-4109-a8d0-b7ed99d56bc7"; + fsType = "ext4"; + }; - swapDevices = - [ { device = "/dev/disk/by-uuid/ca4eedce-6e52-4593-a188-a48e54074d14"; } - ]; + swapDevices = [ + {device = "/dev/disk/by-uuid/ca4eedce-6e52-4593-a188-a48e54074d14";} + ]; # 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 @@ -31,4 +35,3 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; } - diff --git a/modules/sec_auth/login-manager.nix b/modules/sec_auth/login-manager.nix index 3964f7e..7c6801a 100644 --- a/modules/sec_auth/login-manager.nix +++ b/modules/sec_auth/login-manager.nix @@ -6,13 +6,13 @@ vt = 7; settings = { default_session = { - command = ''${pkgs.greetd.tuigreet}/bin/tuigreet \ - --time \ - --time-format '%Y-%m-%dT%H:%M:%S %A' \ - --remember \ - --user-menu \ - --theme 'border=lightgreen;text=lightgreen;prompt=lightgreen;time=lightgreen;action=lightgreen;button=lightgreen;input=lightgreen' \ - --cmd Hyprland''; + command = '' ${pkgs.greetd.tuigreet}/bin/tuigreet \ + --time \ + --time-format '%Y-%m-%dT%H:%M:%S %A' \ + --remember \ + --user-menu \ + --theme 'border=lightgreen;text=lightgreen;prompt=lightgreen;time=lightgreen;action=lightgreen;button=lightgreen;input=lightgreen' \ + --cmd Hyprland''; # removed elements from theme: container user = "greeter"; }; diff --git a/modules/software/software.nix b/modules/software/software.nix index 69784fa..585c5c5 100644 --- a/modules/software/software.nix +++ b/modules/software/software.nix @@ -63,6 +63,7 @@ keepassxc #minecraft element-desktop + rustdesk-flutter ]; fonts.packages = with pkgs; [ From 959b37b3348c7e5f959beb31ecb439c628f41cc6 Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Mon, 11 Nov 2024 02:00:21 +0100 Subject: [PATCH 02/14] 237 current 2024-11-11 02:00:15 24.05.20241106.dba4149 6.11.6 * --- flake.lock | 24 ++++++++++++------------ modules/software/software.nix | 1 + 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/flake.lock b/flake.lock index 2207d6e..ffc8418 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nix-flatpak": { "locked": { - "lastModified": 1729453639, - "narHash": "sha256-L19R5CXCfTU9IFs9FAaYhDiteegfhJQMiAHLfls4Pdw=", + "lastModified": 1730108712, + "narHash": "sha256-vIvmXmjAQIY39hACGFe/cdBK2r3ZprpHLwX2HIy7Mj8=", "owner": "gmodena", "repo": "nix-flatpak", - "rev": "68bc646058386e2ffbd9d78d79d6558e684f6b8c", + "rev": "1cba177bb0a948c919af7596e40bef307543d40a", "type": "github" }, "original": { @@ -38,11 +38,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1729742320, - "narHash": "sha256-u3Of8xRkN//me8PU+RucKA59/6RNy4B2jcGAF36P4jI=", + "lastModified": 1730919458, + "narHash": "sha256-yMO0T0QJlmT/x4HEyvrCyigGrdYfIXX3e5gWqB64wLg=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "e8a2f6d5513fe7b7d15701b2d05404ffdc3b6dda", + "rev": "e1cc1f6483393634aee94514186d21a4871e78d7", "type": "github" }, "original": { @@ -54,11 +54,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1729973466, - "narHash": "sha256-knnVBGfTCZlQgxY1SgH0vn2OyehH9ykfF8geZgS95bk=", + "lastModified": 1730883749, + "narHash": "sha256-mwrFF0vElHJP8X3pFCByJR365Q2463ATp2qGIrDUdlE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "cd3e8833d70618c4eea8df06f95b364b016d4950", + "rev": "dba414932936fde69f0606b4f1d87c5bc0003ede", "type": "github" }, "original": { @@ -70,11 +70,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1729880355, - "narHash": "sha256-RP+OQ6koQQLX5nw0NmcDrzvGL8HDLnyXt/jHhL1jwjM=", + "lastModified": 1730785428, + "narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "18536bf04cd71abd345f9579158841376fdd0c5a", + "rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7", "type": "github" }, "original": { diff --git a/modules/software/software.nix b/modules/software/software.nix index 585c5c5..91df965 100644 --- a/modules/software/software.nix +++ b/modules/software/software.nix @@ -43,6 +43,7 @@ htop ncdu wget + unstable.yt-dlp miniserve file unzip From 42631c529bb106116f7c3eccea3ac88c85e57169 Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Mon, 11 Nov 2024 19:48:52 +0100 Subject: [PATCH 03/14] 237 current 2024-11-11 02:00:15 24.05.20241106.dba4149 6.11.6 * --- flake.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index ffc8418..95d923e 100644 --- a/flake.lock +++ b/flake.lock @@ -38,11 +38,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1730919458, - "narHash": "sha256-yMO0T0QJlmT/x4HEyvrCyigGrdYfIXX3e5gWqB64wLg=", + "lastModified": 1731332224, + "narHash": "sha256-0ctfVp27ingWtY7dbP5+QpSQ98HaOZleU0teyHQUAw0=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "e1cc1f6483393634aee94514186d21a4871e78d7", + "rev": "184687ae1a3139faa4746168baf071f60d0310c8", "type": "github" }, "original": { @@ -54,11 +54,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1730883749, - "narHash": "sha256-mwrFF0vElHJP8X3pFCByJR365Q2463ATp2qGIrDUdlE=", + "lastModified": 1731239293, + "narHash": "sha256-q2yjIWFFcTzp5REWQUOU9L6kHdCDmFDpqeix86SOvDc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "dba414932936fde69f0606b4f1d87c5bc0003ede", + "rev": "9256f7c71a195ebe7a218043d9f93390d49e6884", "type": "github" }, "original": { @@ -70,11 +70,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1730785428, - "narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=", + "lastModified": 1731139594, + "narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7", + "rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2", "type": "github" }, "original": { From 61ad987fe47cfd2443a205b1eea91081097d5f58 Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Thu, 14 Nov 2024 17:50:29 +0100 Subject: [PATCH 04/14] 239 current 2024-11-14 17:50:24 24.05.20241110.9256f7c 6.11.7 * --- modules/software/software.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/software/software.nix b/modules/software/software.nix index 91df965..85e667d 100644 --- a/modules/software/software.nix +++ b/modules/software/software.nix @@ -65,6 +65,7 @@ #minecraft element-desktop rustdesk-flutter + timer ]; fonts.packages = with pkgs; [ From 615a109143564cd97164f05563fd388d0c478921 Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Tue, 19 Nov 2024 21:26:08 +0100 Subject: [PATCH 05/14] 241 current 2024-11-16 18:59:54 24.05.20241110.9256f7c 6.11.7 * --- hosts/crocoite/crocoite.nix | 1 + modules/sec_auth/firejail.nix | 35 ++++++++++++++++++++++--------- modules/software/browser/nyxt.nix | 5 +++++ 3 files changed, 31 insertions(+), 10 deletions(-) create mode 100644 modules/software/browser/nyxt.nix diff --git a/hosts/crocoite/crocoite.nix b/hosts/crocoite/crocoite.nix index 4aff002..cf22c2f 100644 --- a/hosts/crocoite/crocoite.nix +++ b/hosts/crocoite/crocoite.nix @@ -87,5 +87,6 @@ ../../modules/software/browser/firefox.nix ../../modules/software/browser/brave.nix + ../../modules/software/browser/nyxt.nix ]; } diff --git a/modules/sec_auth/firejail.nix b/modules/sec_auth/firejail.nix index 935d869..11f7836 100644 --- a/modules/sec_auth/firejail.nix +++ b/modules/sec_auth/firejail.nix @@ -3,18 +3,14 @@ programs.firejail = { enable = true; wrappedBinaries = { - firefox = { - executable = "${pkgs.firefox}/bin/firefox"; - profile = "${pkgs.firejail}/etc/firejail/firefox.profile"; + nuclear = { + executable = "${pkgs.nuclear}/bin/nuclear"; + profile = "${pkgs.firejail}/etc/firejail/nuclear.profile"; extraArgs = [ - # Required for U2F USB stick - "--ignore=private-dev" # Enforce dark mode "--env=GTK_THEME=Adwaita:dark" # Enable system notifications "--dbus-user.talk=org.freedesktop.Notifications" - # For screen sharing - "--dbus-user.talk=org.freedesktop.portal.*" ]; }; @@ -33,14 +29,33 @@ ]; }; - nuclear = { - executable = "${pkgs.nuclear}/bin/nuclear"; - profile = "${pkgs.firejail}/etc/firejail/nuclear.profile"; + firefox = { + executable = "${pkgs.firefox}/bin/firefox"; + profile = "${pkgs.firejail}/etc/firejail/firefox.profile"; extraArgs = [ + # Required for U2F USB stick + "--ignore=private-dev" # Enforce dark mode "--env=GTK_THEME=Adwaita:dark" # Enable system notifications "--dbus-user.talk=org.freedesktop.Notifications" + # For screen sharing + "--dbus-user.talk=org.freedesktop.portal.*" + ]; + }; + + nyxt = { + executable = "${pkgs.nyxt}/bin/nyxt"; + profile = "${pkgs.firejail}/etc/firejail/chromium-browser.profile"; + extraArgs = [ + # Required for U2F USB stick + "--ignore=private-dev" + # Enforce dark mode + "--env=GTK_THEME=Adwaita:dark" + # Enable system notifications + "--dbus-user.talk=org.freedesktop.Notifications" + # For screen sharing + "--dbus-user.talk=org.freedesktop.portal.*" ]; }; diff --git a/modules/software/browser/nyxt.nix b/modules/software/browser/nyxt.nix new file mode 100644 index 0000000..3252875 --- /dev/null +++ b/modules/software/browser/nyxt.nix @@ -0,0 +1,5 @@ +{pkgs, ...}: { + environment.systemPackages = with pkgs; [ + nyxt + ]; +} From e18e7b4422cebf9ada0fbfaafb03c3d377898f00 Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Thu, 21 Nov 2024 19:51:22 +0100 Subject: [PATCH 06/14] 243 current 2024-11-21 19:51:09 24.05.20241116.e8c38b7 6.11.8 * --- flake.lock | 24 ++++++++++++------------ modules/software/software.nix | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/flake.lock b/flake.lock index 95d923e..28f9a57 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nix-flatpak": { "locked": { - "lastModified": 1730108712, - "narHash": "sha256-vIvmXmjAQIY39hACGFe/cdBK2r3ZprpHLwX2HIy7Mj8=", + "lastModified": 1731698554, + "narHash": "sha256-5kTDLWpsMaKSEnekip2rUBfzuHNS9Fafp5Y7n4Y7hr8=", "owner": "gmodena", "repo": "nix-flatpak", - "rev": "1cba177bb0a948c919af7596e40bef307543d40a", + "rev": "8db1648a95446d41e97ace7caf54e172669810ff", "type": "github" }, "original": { @@ -38,11 +38,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1731332224, - "narHash": "sha256-0ctfVp27ingWtY7dbP5+QpSQ98HaOZleU0teyHQUAw0=", + "lastModified": 1731797098, + "narHash": "sha256-UhWmEZhwJZmVZ1jfHZFzCg+ZLO9Tb/v3Y6LC0UNyeTo=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "184687ae1a3139faa4746168baf071f60d0310c8", + "rev": "672ac2ac86f7dff2f6f3406405bddecf960e0db6", "type": "github" }, "original": { @@ -54,11 +54,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1731239293, - "narHash": "sha256-q2yjIWFFcTzp5REWQUOU9L6kHdCDmFDpqeix86SOvDc=", + "lastModified": 1731797254, + "narHash": "sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9256f7c71a195ebe7a218043d9f93390d49e6884", + "rev": "e8c38b73aeb218e27163376a2d617e61a2ad9b59", "type": "github" }, "original": { @@ -70,11 +70,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1731139594, - "narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=", + "lastModified": 1732014248, + "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2", + "rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", "type": "github" }, "original": { diff --git a/modules/software/software.nix b/modules/software/software.nix index 85e667d..8230404 100644 --- a/modules/software/software.nix +++ b/modules/software/software.nix @@ -53,7 +53,7 @@ home-manager # move to homemanager? - mumble + unstable.mumble amberol_wrapper amberol nuclear From b056abb6c8dfa666bb374a3c6f5b23bcf9d02ea0 Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Fri, 22 Nov 2024 03:37:56 +0100 Subject: [PATCH 07/14] 243 current 2024-11-21 19:51:09 24.05.20241116.e8c38b7 6.11.8 * --- modules/software/software.nix | 2 -- modules/wm_and_de/hyprland.nix | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/software/software.nix b/modules/software/software.nix index 8230404..a971839 100644 --- a/modules/software/software.nix +++ b/modules/software/software.nix @@ -2,8 +2,6 @@ # also opens the TCP and UDP port from 1714 to 1764 programs.kdeconnect.enable = true; - environment.pathsToLink = ["/share/foot"]; - # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = let diff --git a/modules/wm_and_de/hyprland.nix b/modules/wm_and_de/hyprland.nix index 3aaac03..d1ba81e 100644 --- a/modules/wm_and_de/hyprland.nix +++ b/modules/wm_and_de/hyprland.nix @@ -44,6 +44,8 @@ style = "kvantum"; }; + environment.pathsToLink = ["/share/foot"]; + # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ From a14c963a27da285f07786c6fde865cfab955828a Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Sun, 24 Nov 2024 01:30:55 +0100 Subject: [PATCH 08/14] 244 current 2024-11-24 01:30:50 24.05.20241116.e8c38b7 6.11.8 * --- modules/wm_and_de/hyprland.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wm_and_de/hyprland.nix b/modules/wm_and_de/hyprland.nix index d1ba81e..8796f33 100644 --- a/modules/wm_and_de/hyprland.nix +++ b/modules/wm_and_de/hyprland.nix @@ -58,7 +58,7 @@ pamixer waybar hyprpaper - kanshi + unstable.kanshi dunst # audio From b5f6ed9d18baec66769203a445cc194e7423b8e1 Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Wed, 27 Nov 2024 05:55:53 +0100 Subject: [PATCH 09/14] 247 current 2024-11-27 05:49:17 24.11.20241123.0c58267 6.12.1 * --- flake.lock | 26 +++++++++++++------------- flake.nix | 3 ++- modules/software/software.nix | 5 +++-- modules/wm_and_de/hyprland.nix | 2 +- 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/flake.lock b/flake.lock index 28f9a57..86d3325 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nix-flatpak": { "locked": { - "lastModified": 1731698554, - "narHash": "sha256-5kTDLWpsMaKSEnekip2rUBfzuHNS9Fafp5Y7n4Y7hr8=", + "lastModified": 1732304879, + "narHash": "sha256-/DOW8VadE//HA6tuV2++NowYWi7Wa/FmJHXRJoTQnfQ=", "owner": "gmodena", "repo": "nix-flatpak", - "rev": "8db1648a95446d41e97ace7caf54e172669810ff", + "rev": "c84579946c03c996916be0fb6e1340f444c277af", "type": "github" }, "original": { @@ -38,11 +38,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1731797098, - "narHash": "sha256-UhWmEZhwJZmVZ1jfHZFzCg+ZLO9Tb/v3Y6LC0UNyeTo=", + "lastModified": 1732483221, + "narHash": "sha256-kF6rDeCshoCgmQz+7uiuPdREVFuzhIorGOoPXMalL2U=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "672ac2ac86f7dff2f6f3406405bddecf960e0db6", + "rev": "45348ad6fb8ac0e8415f6e5e96efe47dd7f39405", "type": "github" }, "original": { @@ -54,27 +54,27 @@ }, "nixpkgs": { "locked": { - "lastModified": 1731797254, - "narHash": "sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g=", + "lastModified": 1732350895, + "narHash": "sha256-GcOQbOgmwlsRhpLGSwZJwLbo3pu9ochMETuRSS1xpz4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e8c38b73aeb218e27163376a2d617e61a2ad9b59", + "rev": "0c582677378f2d9ffcb01490af2f2c678dcb29d3", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-24.05", + "ref": "nixos-24.11", "repo": "nixpkgs", "type": "github" } }, "nixpkgs-unstable": { "locked": { - "lastModified": 1732014248, - "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=", + "lastModified": 1732521221, + "narHash": "sha256-2ThgXBUXAE1oFsVATK1ZX9IjPcS4nKFOAjhPNKuiMn0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", + "rev": "4633a7c72337ea8fd23a4f2ba3972865e3ec685d", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 2ab5d79..8cb48d3 100644 --- a/flake.nix +++ b/flake.nix @@ -2,9 +2,10 @@ ###### inputs = { ###### + #nixpkgs-old.url = "github:NixOS/nixpkgs/nixos-24.05"; # Main nix package repository - nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; # NixOS unstable channel nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; diff --git a/modules/software/software.nix b/modules/software/software.nix index a971839..5e35767 100644 --- a/modules/software/software.nix +++ b/modules/software/software.nix @@ -49,6 +49,7 @@ ripgrep qemu home-manager + dfc # move to homemanager? unstable.mumble @@ -62,13 +63,13 @@ keepassxc #minecraft element-desktop - rustdesk-flutter + rustdesk timer ]; fonts.packages = with pkgs; [ noto-fonts - noto-fonts-cjk + noto-fonts-cjk-sans noto-fonts-emoji liberation_ttf dina-font diff --git a/modules/wm_and_de/hyprland.nix b/modules/wm_and_de/hyprland.nix index 8796f33..e5ba3b1 100644 --- a/modules/wm_and_de/hyprland.nix +++ b/modules/wm_and_de/hyprland.nix @@ -83,6 +83,6 @@ lxqt.lxqt-policykit # file manager - gnome.nautilus + nautilus ]; } From 0f6db234038a7dcf153b6d3fc50f9cdfbbcd0548 Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Sun, 1 Dec 2024 03:27:59 +0100 Subject: [PATCH 10/14] 248 current 2024-11-30 21:57:29 24.11.20241123.0c58267 6.12.1 * --- hosts/crocoite/crocoite.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/hosts/crocoite/crocoite.nix b/hosts/crocoite/crocoite.nix index cf22c2f..8483181 100644 --- a/hosts/crocoite/crocoite.nix +++ b/hosts/crocoite/crocoite.nix @@ -3,6 +3,8 @@ inputs, ... }: { + networking.hostName = "crocoite"; # Define your hostname. + #MANPAGER='nvim +Man!' # This value determines the NixOS release from which the default @@ -13,9 +15,6 @@ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "24.05"; # Did you read the comment? - # Allow unfree packages - #unstable.config.allowUnfree = true; - #nixpkgs.overlays = [ overlays.unstable-packages ]; nixpkgs = { # You can add overlays here @@ -41,14 +40,18 @@ allowUnfree = true; }; }; - networking.hostName = "crocoite"; # Define your hostname. - nix.settings.experimental-features = ["nix-command" "flakes"]; + nix = { + settings.experimental-features = ["nix-command" "flakes"]; + + # https://lix.systems/ Lix is a modern, delicious implementation of the Nix package manager, + # focused on correctness, usability, and growth – + # and committed to doing right by its community. + package = pkgs.lix; + + channel.enable = false; + }; - # https://lix.systems/ Lix is a modern, delicious implementation of the Nix package manager, - # focused on correctness, usability, and growth – - # and committed to doing right by its community. - nix.package = pkgs.lix; imports = [ inputs.nix-flatpak.nixosModules.nix-flatpak From 8c5ac9ead54c64f08fc3b69fe969c3e70391cefc Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Sun, 1 Dec 2024 05:56:56 +0100 Subject: [PATCH 11/14] 252 current 2024-12-01 05:54:48 24.11.20241123.0c58267 6.12.1 * --- hosts/crocoite/crocoite.nix | 6 +- ...rs_and_permissions.nix => environment.nix} | 24 ---- modules/pkg_mgrmnt/flatpak.nix | 122 +++++++++--------- modules/pkg_mgrmnt/podman.nix | 2 + modules/sec_auth/apparmor.nix | 12 ++ modules/software/shell.nix | 4 + modules/users/ranomier.nix | 11 ++ 7 files changed, 98 insertions(+), 83 deletions(-) rename modules/{sec_auth/users_and_permissions.nix => environment.nix} (61%) create mode 100644 modules/sec_auth/apparmor.nix create mode 100644 modules/software/shell.nix create mode 100644 modules/users/ranomier.nix diff --git a/hosts/crocoite/crocoite.nix b/hosts/crocoite/crocoite.nix index 8483181..2a403e2 100644 --- a/hosts/crocoite/crocoite.nix +++ b/hosts/crocoite/crocoite.nix @@ -62,6 +62,9 @@ ../../modules/locale.nix ../../modules/networking.nix ../../modules/boot_theming.nix + ../../modules/environment.nix + + ../../modules/users/ranomier.nix ../../modules/specific_hardware/scan_and_print.nix ../../modules/specific_hardware/fwupd.nix @@ -69,7 +72,7 @@ ../../modules/sec_auth/firejail.nix ../../modules/sec_auth/login-manager.nix - ../../modules/sec_auth/users_and_permissions.nix + ../../modules/sec_auth/apparmor.nix ../../modules/sec_auth/ssh.nix ../../modules/software/software.nix @@ -77,6 +80,7 @@ ../../modules/software/game.nix ../../modules/software/audio_video.nix ../../modules/software/obs-studio.nix + ../../modules/software/shell.nix ../../modules/wm_and_de/hyprland.nix diff --git a/modules/sec_auth/users_and_permissions.nix b/modules/environment.nix similarity index 61% rename from modules/sec_auth/users_and_permissions.nix rename to modules/environment.nix index 5d5e922..d399d08 100644 --- a/modules/sec_auth/users_and_permissions.nix +++ b/modules/environment.nix @@ -1,12 +1,4 @@ {pkgs, ...}: { - # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.ranomier = { - isNormalUser = true; - description = "Ranomier"; - extraGroups = ["networkmanager" "wheel"]; - #packages = with pkgs; []; - }; - environment.etc = { "xdg/user-dirs.defaults".text = '' DESKTOP=Desktop @@ -37,21 +29,5 @@ # XDG-USER-DIR package and config environment.systemPackages = with pkgs; [ xdg-user-dirs - - apparmor-pam - apparmor-utils - apparmor-parser - apparmor-profiles - roddhjav-apparmor-rules ]; - - security.apparmor.enable = true; - - # Some programs need SUID wrappers, can be configured further or are - # started in user sessions. - # programs.mtr.enable = true; - # programs.gnupg.agent = { - # enable = true; - # enableSSHSupport = true; - # }; } diff --git a/modules/pkg_mgrmnt/flatpak.nix b/modules/pkg_mgrmnt/flatpak.nix index 7af54b5..cf47a56 100644 --- a/modules/pkg_mgrmnt/flatpak.nix +++ b/modules/pkg_mgrmnt/flatpak.nix @@ -1,64 +1,70 @@ {lib, ...}: { - services.flatpak.enable = true; - services.flatpak.update.auto.enable = false; - services.flatpak.uninstallUnmanaged = true; + services.flatpak = { + enable = true; + update.auto = { + enable = false; + onCalendar = "weekly"; + }; + uninstallUnmanaged = true; - services.flatpak.remotes = lib.mkOptionDefault [ - { - name = "flathub-beta"; - location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo"; - } - { - name = "flathub"; - location = "https://dl.flathub.org/repo/flathub.flatpakrepo"; - } - ]; + remotes = [ + { + name = "flathub"; + location = "https://dl.flathub.org/repo/flathub.flatpakrepo"; + args = "--prio=99"; + } + { + name = "flathub-beta"; + location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo"; + } + ]; - services.flatpak.packages = [ - { - origin = "flathub"; - appId = "com.github.tchx84.Flatseal"; - } # flatpak permisssion gui - { - origin = "flathub"; - appId = "com.mojang.Minecraft"; - } # Lego for adults - { - origin = "flathub"; - appId = "de.schmidhuberj.DieBahn"; - } # Public transport connection viewer - { - origin = "flathub"; - appId = "com.github.hugolabe.Wike"; - } # Wikpedia, but in nice - #{ origin = "flathub"; appId = "com.jeffser.Alpaca"; } # Local chat AI - { - origin = "flathub"; - appId = "io.gpt4all.gpt4all"; - } # Local chat AI - { - origin = "flathub"; - appId = "md.obsidian.Obsidian"; - } # note taking and brain organising + packages = [ + { + origin = "flathub"; + appId = "com.github.tchx84.Flatseal"; + } # flatpak permisssion gui + { + origin = "flathub"; + appId = "com.mojang.Minecraft"; + } # Lego for adults + { + origin = "flathub"; + appId = "de.schmidhuberj.DieBahn"; + } # Public transport connection viewer + { + origin = "flathub"; + appId = "com.github.hugolabe.Wike"; + } # Wikpedia, but in nice + #{ origin = "flathub"; appId = "com.jeffser.Alpaca"; } # Local chat AI + { + origin = "flathub"; + appId = "io.gpt4all.gpt4all"; + } # Local chat AI + { + origin = "flathub"; + appId = "md.obsidian.Obsidian"; + } # note taking and brain organising - # messenger - { - origin = "flathub"; - appId = "org.signal.Signal"; - } - { - origin = "flathub"; - appId = "org.telegram.desktop"; - } - { - origin = "flathub"; - appId = "dev.vencord.Vesktop"; - } # More usable discord for linux - { - origin = "flathub"; - appId = "io.github.Soundux"; - } # soundboard + # messenger + { + origin = "flathub"; + appId = "org.signal.Signal"; + } + { + origin = "flathub"; + appId = "org.telegram.desktop"; + } + { + origin = "flathub"; + appId = "dev.vencord.Vesktop"; + } # More usable discord for linux + { + origin = "flathub"; + appId = "io.github.Soundux"; + } # soundboard - #"com.obsproject.Studio" #this is another way to write it - ]; + #"com.obsproject.Studio" #this is another way to write it + ]; + }; } diff --git a/modules/pkg_mgrmnt/podman.nix b/modules/pkg_mgrmnt/podman.nix index 5da164a..ee82a11 100644 --- a/modules/pkg_mgrmnt/podman.nix +++ b/modules/pkg_mgrmnt/podman.nix @@ -15,6 +15,8 @@ }; }; + environment.sessionVariables = { + }; # Useful other development tools environment.systemPackages = with pkgs; [ dive # look into docker image layers diff --git a/modules/sec_auth/apparmor.nix b/modules/sec_auth/apparmor.nix new file mode 100644 index 0000000..dad5775 --- /dev/null +++ b/modules/sec_auth/apparmor.nix @@ -0,0 +1,12 @@ +{pkgs, ...}: { + security.apparmor.enable = true; + + # XDG-USER-DIR package and config + environment.systemPackages = with pkgs; [ + apparmor-pam + apparmor-utils + apparmor-parser + apparmor-profiles + roddhjav-apparmor-rules + ]; +} diff --git a/modules/software/shell.nix b/modules/software/shell.nix new file mode 100644 index 0000000..ad14ac4 --- /dev/null +++ b/modules/software/shell.nix @@ -0,0 +1,4 @@ +{pkgs, ...}: { + programs.zsh.enable = true; + users.defaultUserShell = pkgs.zsh; +} diff --git a/modules/users/ranomier.nix b/modules/users/ranomier.nix new file mode 100644 index 0000000..9bd1e06 --- /dev/null +++ b/modules/users/ranomier.nix @@ -0,0 +1,11 @@ +{pkgs, ...}: { + # Define a user account. Don't forget to set a password with ‘passwd’. + users.users.ranomier = { + isNormalUser = true; + description = "Ranomier"; + extraGroups = ["networkmanager" "wheel" "podman"]; + shell = pkgs.zsh; + useDefaultShell = true; + #packages = with pkgs; []; + }; +} From 3d284f922972b0872b634aa05a1c63236576161f Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Sun, 1 Dec 2024 20:14:03 +0100 Subject: [PATCH 12/14] updated home manager to 24.11 --- flake.lock | 8 ++++---- flake.nix | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index 86d3325..5dadc0b 100644 --- a/flake.lock +++ b/flake.lock @@ -7,16 +7,16 @@ ] }, "locked": { - "lastModified": 1726989464, - "narHash": "sha256-Vl+WVTJwutXkimwGprnEtXc/s/s8sMuXzqXaspIGlwM=", + "lastModified": 1733050161, + "narHash": "sha256-lYnT+EYE47f5yY3KS/Kd4pJ6CO9fhCqumkYYkQ3TK20=", "owner": "nix-community", "repo": "home-manager", - "rev": "2f23fa308a7c067e52dfcc30a0758f47043ec176", + "rev": "62d536255879be574ebfe9b87c4ac194febf47c5", "type": "github" }, "original": { "owner": "nix-community", - "ref": "release-24.05", + "ref": "release-24.11", "repo": "home-manager", "type": "github" } diff --git a/flake.nix b/flake.nix index 8cb48d3..0c0e544 100644 --- a/flake.nix +++ b/flake.nix @@ -11,7 +11,7 @@ nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; home-manager = { - url = "github:nix-community/home-manager/release-24.05"; + url = "github:nix-community/home-manager/release-24.11"; inputs.nixpkgs.follows = "nixpkgs"; }; From 6d82cb9640782854e12346189161571bae8e83cd Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Sun, 1 Dec 2024 20:15:54 +0100 Subject: [PATCH 13/14] split flatpak.nix in software and config part --- hosts/crocoite/crocoite.nix | 1 + modules/pkg_mgrmnt/flatpak.nix | 49 +------------------------------- modules/software/flatpak.nix | 51 ++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 48 deletions(-) create mode 100644 modules/software/flatpak.nix diff --git a/hosts/crocoite/crocoite.nix b/hosts/crocoite/crocoite.nix index 2a403e2..e816cca 100644 --- a/hosts/crocoite/crocoite.nix +++ b/hosts/crocoite/crocoite.nix @@ -81,6 +81,7 @@ ../../modules/software/audio_video.nix ../../modules/software/obs-studio.nix ../../modules/software/shell.nix + ../../modules/software/flatpak.nix ../../modules/wm_and_de/hyprland.nix diff --git a/modules/pkg_mgrmnt/flatpak.nix b/modules/pkg_mgrmnt/flatpak.nix index cf47a56..09cdc72 100644 --- a/modules/pkg_mgrmnt/flatpak.nix +++ b/modules/pkg_mgrmnt/flatpak.nix @@ -1,4 +1,4 @@ -{lib, ...}: { +{ ... }: { services.flatpak = { enable = true; update.auto = { @@ -19,52 +19,5 @@ } ]; - packages = [ - { - origin = "flathub"; - appId = "com.github.tchx84.Flatseal"; - } # flatpak permisssion gui - { - origin = "flathub"; - appId = "com.mojang.Minecraft"; - } # Lego for adults - { - origin = "flathub"; - appId = "de.schmidhuberj.DieBahn"; - } # Public transport connection viewer - { - origin = "flathub"; - appId = "com.github.hugolabe.Wike"; - } # Wikpedia, but in nice - #{ origin = "flathub"; appId = "com.jeffser.Alpaca"; } # Local chat AI - { - origin = "flathub"; - appId = "io.gpt4all.gpt4all"; - } # Local chat AI - { - origin = "flathub"; - appId = "md.obsidian.Obsidian"; - } # note taking and brain organising - - # messenger - { - origin = "flathub"; - appId = "org.signal.Signal"; - } - { - origin = "flathub"; - appId = "org.telegram.desktop"; - } - { - origin = "flathub"; - appId = "dev.vencord.Vesktop"; - } # More usable discord for linux - { - origin = "flathub"; - appId = "io.github.Soundux"; - } # soundboard - - #"com.obsproject.Studio" #this is another way to write it - ]; }; } diff --git a/modules/software/flatpak.nix b/modules/software/flatpak.nix new file mode 100644 index 0000000..39f6aa2 --- /dev/null +++ b/modules/software/flatpak.nix @@ -0,0 +1,51 @@ +{ ... }: { + services.flatpak = { + packages = [ + { + origin = "flathub"; + appId = "com.github.tchx84.Flatseal"; + } # flatpak permisssion gui + { + origin = "flathub"; + appId = "com.mojang.Minecraft"; + } # Lego for adults + { + origin = "flathub"; + appId = "de.schmidhuberj.DieBahn"; + } # Public transport connection viewer + { + origin = "flathub"; + appId = "com.github.hugolabe.Wike"; + } # Wikpedia, but in nice + #{ origin = "flathub"; appId = "com.jeffser.Alpaca"; } # Local chat AI + { + origin = "flathub"; + appId = "io.gpt4all.gpt4all"; + } # Local chat AI + { + origin = "flathub"; + appId = "md.obsidian.Obsidian"; + } # note taking and brain organising + + # messenger + { + origin = "flathub"; + appId = "org.signal.Signal"; + } + { + origin = "flathub"; + appId = "org.telegram.desktop"; + } + { + origin = "flathub"; + appId = "dev.vencord.Vesktop"; + } # More usable discord for linux + { + origin = "flathub"; + appId = "io.github.Soundux"; + } # soundboard + + #"com.obsproject.Studio" #this is another way to write it + ]; + }; +} From 07948eefd39a4e39c08bab1d07593c049431fabb Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Sun, 1 Dec 2024 20:59:42 +0100 Subject: [PATCH 14/14] added default.nix files --- hosts/crocoite/crocoite.nix | 39 ++++++------------------- modules/default.nix | 8 +++++ modules/pkg_mgrmnt/default.nix | 7 +++++ modules/sec_auth/default.nix | 8 +++++ modules/software/browser/default.nix | 7 +++++ modules/software/default.nix | 11 +++++++ modules/software/nix-helper/default.nix | 7 +++++ modules/specific_hardware/default.nix | 7 +++++ modules/users/default.nix | 5 ++++ modules/wm_and_de/default.nix | 5 ++++ 10 files changed, 74 insertions(+), 30 deletions(-) create mode 100644 modules/default.nix create mode 100644 modules/pkg_mgrmnt/default.nix create mode 100644 modules/sec_auth/default.nix create mode 100644 modules/software/browser/default.nix create mode 100644 modules/software/default.nix create mode 100644 modules/software/nix-helper/default.nix create mode 100644 modules/specific_hardware/default.nix create mode 100644 modules/users/default.nix create mode 100644 modules/wm_and_de/default.nix diff --git a/hosts/crocoite/crocoite.nix b/hosts/crocoite/crocoite.nix index e816cca..c8dfb57 100644 --- a/hosts/crocoite/crocoite.nix +++ b/hosts/crocoite/crocoite.nix @@ -59,42 +59,21 @@ ./hardware-configuration.nix ./boot.nix - ../../modules/locale.nix - ../../modules/networking.nix - ../../modules/boot_theming.nix - ../../modules/environment.nix + ../../modules - ../../modules/users/ranomier.nix + ../../modules/users - ../../modules/specific_hardware/scan_and_print.nix - ../../modules/specific_hardware/fwupd.nix - ../../modules/specific_hardware/bluetooth.nix + ../../modules/specific_hardware - ../../modules/sec_auth/firejail.nix - ../../modules/sec_auth/login-manager.nix - ../../modules/sec_auth/apparmor.nix - ../../modules/sec_auth/ssh.nix + ../../modules/sec_auth - ../../modules/software/software.nix - ../../modules/software/virt.nix - ../../modules/software/game.nix - ../../modules/software/audio_video.nix - ../../modules/software/obs-studio.nix - ../../modules/software/shell.nix - ../../modules/software/flatpak.nix + ../../modules/software + ../../modules/software/browser + ../../modules/software/nix-helper - ../../modules/wm_and_de/hyprland.nix + ../../modules/wm_and_de - ../../modules/pkg_mgrmnt/flatpak.nix - ../../modules/pkg_mgrmnt/podman.nix - ../../modules/pkg_mgrmnt/store_pkg_file.nix + ../../modules/pkg_mgrmnt - ../../modules/software/nix-helper/index.nix - #../../modules/software/nix-helper/doc.nix - ../../modules/software/nix-helper/nix-ld.nix - - ../../modules/software/browser/firefox.nix - ../../modules/software/browser/brave.nix - ../../modules/software/browser/nyxt.nix ]; } diff --git a/modules/default.nix b/modules/default.nix new file mode 100644 index 0000000..8d6c975 --- /dev/null +++ b/modules/default.nix @@ -0,0 +1,8 @@ +{ ... }: { + imports = [ + ./boot_theming.nix + ./environment.nix + ./locale.nix + ./networking.nix + ]; +} diff --git a/modules/pkg_mgrmnt/default.nix b/modules/pkg_mgrmnt/default.nix new file mode 100644 index 0000000..71c5425 --- /dev/null +++ b/modules/pkg_mgrmnt/default.nix @@ -0,0 +1,7 @@ +{ ... }: { + imports = [ + ./flatpak.nix + ./podman.nix + ./store_pkg_file.nix + ]; +} diff --git a/modules/sec_auth/default.nix b/modules/sec_auth/default.nix new file mode 100644 index 0000000..8b8f5eb --- /dev/null +++ b/modules/sec_auth/default.nix @@ -0,0 +1,8 @@ +{ ... }: { + imports = [ + ./apparmor.nix + ./firejail.nix + ./login-manager.nix + ./ssh.nix + ]; +} diff --git a/modules/software/browser/default.nix b/modules/software/browser/default.nix new file mode 100644 index 0000000..c7993a3 --- /dev/null +++ b/modules/software/browser/default.nix @@ -0,0 +1,7 @@ +{ ... }: { + imports = [ + ./brave.nix + ./firefox.nix + ./nyxt.nix + ]; +} diff --git a/modules/software/default.nix b/modules/software/default.nix new file mode 100644 index 0000000..8a9ebdf --- /dev/null +++ b/modules/software/default.nix @@ -0,0 +1,11 @@ +{ ... }: { + imports = [ + ./audio_video.nix + ./flatpak.nix + ./game.nix + ./obs-studio.nix + ./shell.nix + ./software.nix + ./virt.nix + ]; +} diff --git a/modules/software/nix-helper/default.nix b/modules/software/nix-helper/default.nix new file mode 100644 index 0000000..98db3a7 --- /dev/null +++ b/modules/software/nix-helper/default.nix @@ -0,0 +1,7 @@ +{ ... }: { + imports = [ + #./doc.nix + ./index.nix + ./nix-ld.nix + ]; +} diff --git a/modules/specific_hardware/default.nix b/modules/specific_hardware/default.nix new file mode 100644 index 0000000..1eb44d0 --- /dev/null +++ b/modules/specific_hardware/default.nix @@ -0,0 +1,7 @@ +{ ... }: { + imports = [ + ./bluetooth.nix + ./fwupd.nix + ./scan_and_print.nix + ]; +} diff --git a/modules/users/default.nix b/modules/users/default.nix new file mode 100644 index 0000000..e76314b --- /dev/null +++ b/modules/users/default.nix @@ -0,0 +1,5 @@ +{ ... }: { + imports = [ + ./ranomier.nix + ]; +} diff --git a/modules/wm_and_de/default.nix b/modules/wm_and_de/default.nix new file mode 100644 index 0000000..74809a6 --- /dev/null +++ b/modules/wm_and_de/default.nix @@ -0,0 +1,5 @@ +{ ... }: { + imports = [ + ./hyprland.nix + ]; +}