diff --git a/README.md b/README.md index ddaffa1..dac71e1 100644 --- a/README.md +++ b/README.md @@ -134,10 +134,13 @@ nixos-install --no-root-passwd --flake .#omega `hosts/*/hardware.nix`, while initially generated by `nixos-generate-config --show-hardware-config`, _is_ manually modified. -### State Version +### Upgrading Nixpkgs uses `stateVersion` so sparingly that auditing the entire nixpkgs repo is [easy -enough](https://sourcegraph.com/search?q=context%3Aglobal+repo%3A%5Egithub%5C.com%3FNixOS%2Fnixpkgs%24++lang%3ANix+stateVersion+AND+23.11). +enough](https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/NixOS/nixpkgs%24+lang:Nix+stateVersion+AND+24.05&patternType=keyword&sm=0). +Important changes to home-manager is available at + and +. ## Useful Commands diff --git a/flake.lock b/flake.lock index 33fcc7a..dd8b047 100644 --- a/flake.lock +++ b/flake.lock @@ -44,11 +44,11 @@ "flake-compat": { "flake": false, "locked": { - "lastModified": 1668681692, - "narHash": "sha256-Ht91NGdewz8IQLtWZ9LCeNXMSXHUss+9COoqu6JLmXU=", + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", "owner": "edolstra", "repo": "flake-compat", - "rev": "009399224d5e398d03b22badca40a37ac85412a1", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", "type": "github" }, "original": { @@ -64,16 +64,16 @@ ] }, "locked": { - "lastModified": 1716729592, - "narHash": "sha256-Y3bOjoh2cFBqZN0Jw1zUdyr7tjygyxl2bD/QY73GZP0=", + "lastModified": 1716736833, + "narHash": "sha256-rNObca6dm7Qs524O4st8VJH6pZ/Xe1gxl+Rx6mcWYo0=", "owner": "nix-community", "repo": "home-manager", - "rev": "2c78a57c544dd19b07442350727ced097e1aa6e6", + "rev": "a631666f5ec18271e86a5cde998cba68c33d9ac6", "type": "github" }, "original": { "owner": "nix-community", - "ref": "release-23.11", + "ref": "release-24.05", "repo": "home-manager", "type": "github" } @@ -85,11 +85,11 @@ ] }, "locked": { - "lastModified": 1717097707, - "narHash": "sha256-HC5vJ3oYsjwsCaSbkIPv80e4ebJpNvFKQTBOGlHvjLs=", + "lastModified": 1717316182, + "narHash": "sha256-Xi0EpZcu39N0eW7apLjFfUOR9y80toyjYizez7J1wMI=", "owner": "nix-community", "repo": "home-manager", - "rev": "0eb314b4f0ba337e88123e0b1e57ef58346aafd9", + "rev": "9b53a10f4c91892f5af87cf55d08fba59ca086af", "type": "github" }, "original": { @@ -121,11 +121,11 @@ ] }, "locked": { - "lastModified": 1716772633, - "narHash": "sha256-Idcye44UW+EgjbjCoklf2IDF+XrehV6CVYvxR1omst4=", + "lastModified": 1717297675, + "narHash": "sha256-43UmlS1Ifx17y93/Vc258U7bOlAAIZbu8dsGDHOIIr0=", "owner": "nix-community", "repo": "nix-index-database", - "rev": "ff80cb4a11bb87f3ce8459be6f16a25ac86eb2ac", + "rev": "972a52bee3991ae1f1899e6452e0d7c01ee566d9", "type": "github" }, "original": { @@ -136,11 +136,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1716987116, - "narHash": "sha256-uuEkErFVsFdg2K0cKbNQ9JlFSAm/xYqPr4rbPLI91Y8=", + "lastModified": 1717248095, + "narHash": "sha256-e8X2eWjAHJQT82AAN+mCI0B68cIDBJpqJ156+VRrFO0=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "8251761f93d6f5b91cee45ac09edb6e382641009", + "rev": "7b49d3967613d9aacac5b340ef158d493906ba79", "type": "github" }, "original": { @@ -152,47 +152,32 @@ }, "nixpkgs": { "locked": { - "lastModified": 1716991068, - "narHash": "sha256-Av0UWCCiIGJxsZ6TFc+OiKCJNqwoxMNVYDBChmhjNpo=", + "lastModified": 1717144377, + "narHash": "sha256-F/TKWETwB5RaR8owkPPi+SPJh83AQsm6KrQAlJ8v/uA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "25cf937a30bf0801447f6bf544fc7486c6309234", + "rev": "805a384895c696f802a9bf5bf4720f37385df547", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-23.11", + "ref": "nixos-24.05", "repo": "nixpkgs", "type": "github" } }, - "nixpkgs-23_05": { + "nixpkgs-24_05": { "locked": { - "lastModified": 1704290814, - "narHash": "sha256-LWvKHp7kGxk/GEtlrGYV68qIvPHkU9iToomNFGagixU=", + "lastModified": 1717144377, + "narHash": "sha256-F/TKWETwB5RaR8owkPPi+SPJh83AQsm6KrQAlJ8v/uA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "70bdadeb94ffc8806c0570eb5c2695ad29f0e421", + "rev": "805a384895c696f802a9bf5bf4720f37385df547", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "nixos-23.05", - "type": "indirect" - } - }, - "nixpkgs-23_11": { - "locked": { - "lastModified": 1706098335, - "narHash": "sha256-r3dWjT8P9/Ah5m5ul4WqIWD8muj5F+/gbCdjiNVBKmU=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "a77ab169a83a4175169d78684ddd2e54486ac651", - "type": "github" - }, - "original": { - "id": "nixpkgs", - "ref": "nixos-23.11", + "ref": "nixos-24.05", "type": "indirect" } }, @@ -228,11 +213,11 @@ }, "secrets": { "locked": { - "lastModified": 1717157873, - "narHash": "sha256-83FNu9/bO88ubXOUakzRfBvJJYLbIlN+fVtAtVy/as8=", + "lastModified": 1717366287, + "narHash": "sha256-WEeB72ELO+frVaTQHOyMymoAB0vAAaVM9qSQ/6K5HkU=", "ref": "refs/heads/master", - "rev": "3369fe960dfa17dc4b3a3f84f10fd30e49fee75f", - "revCount": 41, + "rev": "8a19e91e0a30f444d77da33dd1f44979f7774e92", + "revCount": 42, "type": "git", "url": "ssh://git@git.caspervk.net/caspervk/nixos-secrets.git" }, @@ -248,21 +233,20 @@ "nixpkgs": [ "nixpkgs" ], - "nixpkgs-23_05": "nixpkgs-23_05", - "nixpkgs-23_11": "nixpkgs-23_11", + "nixpkgs-24_05": "nixpkgs-24_05", "utils": "utils" }, "locked": { - "lastModified": 1706219574, - "narHash": "sha256-qO+8UErk+bXCq2ybHU4GzXG4Ejk4Tk0rnnTPNyypW4g=", + "lastModified": 1717408642, + "narHash": "sha256-lGyLGBU4cxd309uyoT+X1RiM5WOGE+jGLwfEw1FhnpY=", "owner": "simple-nixos-mailserver", "repo": "nixos-mailserver", - "rev": "e47f3719f1db3e0961a4358d4cb234a0acaa7baf", + "rev": "1e456aff45e3ae5c0b37c31ea6f677aaea081d26", "type": "gitlab" }, "original": { "owner": "simple-nixos-mailserver", - "ref": "nixos-23.11", + "ref": "nixos-24.05", "repo": "nixos-mailserver", "type": "gitlab" } @@ -282,13 +266,31 @@ "type": "github" } }, - "utils": { + "systems_2": { "locked": { - "lastModified": 1605370193, - "narHash": "sha256-YyMTf3URDL/otKdKgtoMChu4vfVL3vCMkRqpGifhUn0=", + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "utils": { + "inputs": { + "systems": "systems_2" + }, + "locked": { + "lastModified": 1709126324, + "narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=", "owner": "numtide", "repo": "flake-utils", - "rev": "5021eac20303a61fafe17224c087f5519baed54d", + "rev": "d465f4819400de7c8d874d50b982301f28a84605", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index a83ceaf..22856db 100644 --- a/flake.nix +++ b/flake.nix @@ -6,7 +6,7 @@ url = "git+ssh://git@git.caspervk.net/caspervk/nixos-secrets.git"; }; nixpkgs = { - url = "github:NixOS/nixpkgs/nixos-23.11"; + url = "github:NixOS/nixpkgs/nixos-24.05"; }; nixpkgs-unstable = { url = "github:NixOS/nixpkgs/nixos-unstable"; @@ -32,7 +32,7 @@ inputs.nixpkgs.follows = "nixpkgs"; # use the same nixpkgs as the system }; home-manager = { - url = "github:nix-community/home-manager/release-23.11"; + url = "github:nix-community/home-manager/release-24.05"; inputs.nixpkgs.follows = "nixpkgs"; # use the same nixpkgs as the system }; home-manager-unstable = { @@ -40,7 +40,7 @@ inputs.nixpkgs.follows = "nixpkgs"; # use the same nixpkgs as the system }; simple-nixos-mailserver = { - url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-23.11"; + url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05"; inputs.nixpkgs.follows = "nixpkgs"; # use the same nixpkgs as the system }; }; diff --git a/hosts/alpha/default.nix b/hosts/alpha/default.nix index ff66f22..d014791 100644 --- a/hosts/alpha/default.nix +++ b/hosts/alpha/default.nix @@ -27,7 +27,7 @@ # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "23.11"; # Did you read the comment? + system.stateVersion = "24.05"; # Did you read the comment? # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage @@ -36,5 +36,5 @@ # You can update Home Manager without changing this value. See # the Home Manager release notes for a list of state version # changes in each release. - home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment? + home-manager.users.caspervk.home.stateVersion = "24.05"; # Did you read the comment? } diff --git a/hosts/delta/default.nix b/hosts/delta/default.nix index c6c7144..ec11d27 100644 --- a/hosts/delta/default.nix +++ b/hosts/delta/default.nix @@ -25,7 +25,7 @@ # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "23.11"; # Did you read the comment? + system.stateVersion = "24.05"; # Did you read the comment? # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage @@ -34,5 +34,5 @@ # You can update Home Manager without changing this value. See # the Home Manager release notes for a list of state version # changes in each release. - home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment? + home-manager.users.caspervk.home.stateVersion = "24.05"; # Did you read the comment? } diff --git a/hosts/mu/default.nix b/hosts/mu/default.nix index a24ddbc..6a997f4 100644 --- a/hosts/mu/default.nix +++ b/hosts/mu/default.nix @@ -28,7 +28,7 @@ # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "23.11"; # Did you read the comment? + system.stateVersion = "24.05"; # Did you read the comment? # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage @@ -37,5 +37,5 @@ # You can update Home Manager without changing this value. See # the Home Manager release notes for a list of state version # changes in each release. - home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment? + home-manager.users.caspervk.home.stateVersion = "24.05"; # Did you read the comment? } diff --git a/hosts/omega/default.nix b/hosts/omega/default.nix index ae6297a..db93643 100644 --- a/hosts/omega/default.nix +++ b/hosts/omega/default.nix @@ -26,7 +26,7 @@ # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "23.11"; # Did you read the comment? + system.stateVersion = "24.05"; # Did you read the comment? # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage @@ -35,5 +35,5 @@ # You can update Home Manager without changing this value. See # the Home Manager release notes for a list of state version # changes in each release. - home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment? + home-manager.users.caspervk.home.stateVersion = "24.05"; # Did you read the comment? } diff --git a/hosts/omega/hardware.nix b/hosts/omega/hardware.nix index 8262c05..7503928 100644 --- a/hosts/omega/hardware.nix +++ b/hosts/omega/hardware.nix @@ -19,7 +19,7 @@ boot.initrd.kernelModules = ["dm-snapshot"]; boot.kernelModules = ["kvm-amd"]; boot.extraModulePackages = []; - boot.supportedFilesystems = ["ntfs"]; + boot.supportedFilesystems = {ntfs = true;}; # https://elis.nu/blog/2020/05/nixos-tmpfs-as-root/ fileSystems."/" = { diff --git a/hosts/sigma/default.nix b/hosts/sigma/default.nix index b6aad58..8a9de2d 100644 --- a/hosts/sigma/default.nix +++ b/hosts/sigma/default.nix @@ -37,7 +37,7 @@ # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "23.11"; # Did you read the comment? + system.stateVersion = "24.05"; # Did you read the comment? # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage @@ -46,5 +46,5 @@ # You can update Home Manager without changing this value. See # the Home Manager release notes for a list of state version # changes in each release. - home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment? + home-manager.users.caspervk.home.stateVersion = "24.05"; # Did you read the comment? } diff --git a/hosts/sigma/forgejo.nix b/hosts/sigma/forgejo.nix index 314ada3..ac96123 100644 --- a/hosts/sigma/forgejo.nix +++ b/hosts/sigma/forgejo.nix @@ -1,6 +1,5 @@ { config, - nixpkgs-unstable, pkgs, secrets, ... @@ -10,8 +9,6 @@ # https://wiki.nixos.org/wiki/Forgejo services.forgejo = { enable = true; - # TODO: remove package override in NixOS 24.04 - package = nixpkgs-unstable.legacyPackages.x86_64-linux.forgejo; # Run Forgejo under git:git for better ssh clone urls. user = "git"; group = "git"; @@ -80,13 +77,13 @@ # https://wiki.nixos.org/wiki/Forgejo # https://forgejo.org/docs/latest/admin/actions/ services.gitea-actions-runner = { - package = pkgs.forgejo-actions-runner; + package = pkgs.forgejo-runner; instances."default" = { enable = true; name = "default"; url = "https://git.caspervk.net"; # From https://git.caspervk.net/admin/actions/runners/ - tokenFile = config.age.secrets.forgejo-actions-runner-token-file.path; + tokenFile = config.age.secrets.forgejo-runner-token-file.path; # The Forgejo runner relies on application containers (Docker, Podman, # etc) to execute a workflow in an isolated environment. Labels are used # to map jobs' `runs-on` to their runtime environment. Many common @@ -127,8 +124,8 @@ ]; }; - age.secrets.forgejo-actions-runner-token-file = { - file = "${secrets}/secrets/forgejo-actions-runner-token-file.age"; + age.secrets.forgejo-runner-token-file = { + file = "${secrets}/secrets/forgejo-runner-token-file.age"; mode = "400"; owner = "root"; group = "root"; diff --git a/hosts/sigma/hardware.nix b/hosts/sigma/hardware.nix index b6b805b..2ae26e5 100644 --- a/hosts/sigma/hardware.nix +++ b/hosts/sigma/hardware.nix @@ -18,7 +18,7 @@ boot.initrd.kernelModules = ["dm-snapshot"]; boot.kernelModules = ["kvm-amd"]; boot.extraModulePackages = []; - boot.supportedFilesystems = []; + boot.supportedFilesystems = {}; # https://elis.nu/blog/2020/05/nixos-tmpfs-as-root/ fileSystems."/" = { diff --git a/hosts/sigma/matrix.nix b/hosts/sigma/matrix.nix index 9b19313..4ac90e2 100644 --- a/hosts/sigma/matrix.nix +++ b/hosts/sigma/matrix.nix @@ -49,7 +49,7 @@ }; # https://github.com/matrix-org/sliding-sync - services.matrix-synapse.sliding-sync = { + services.matrix-sliding-sync = { # Unlike matrix-synapse, sliding-sync has createDatabase=true by default, # which means we don't have to configure the database in the postgres # service manually. diff --git a/hosts/sigma/sonarr.nix b/hosts/sigma/sonarr.nix index b658f9d..fa23cec 100644 --- a/hosts/sigma/sonarr.nix +++ b/hosts/sigma/sonarr.nix @@ -1,4 +1,4 @@ -{nixpkgs-unstable, ...}: { +{...}: { # Sonarr is an internet PVR for Usenet and Torrents. # https://sonarr.tv/ # @@ -14,8 +14,6 @@ # * UI: Fix retarded date formats. services.sonarr = { enable = true; - # Unstable for sonarr v4. TODO: remove in NixOS 24.04 - package = nixpkgs-unstable.legacyPackages.x86_64-linux.sonarr; # Use the 'torrent' group to share files amongst downloaders, indexers etc. group = "torrent"; }; diff --git a/hosts/tor/default.nix b/hosts/tor/default.nix index dbe47a6..4686cfe 100644 --- a/hosts/tor/default.nix +++ b/hosts/tor/default.nix @@ -26,7 +26,7 @@ # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "23.11"; # Did you read the comment? + system.stateVersion = "24.05"; # Did you read the comment? # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage @@ -35,5 +35,5 @@ # You can update Home Manager without changing this value. See # the Home Manager release notes for a list of state version # changes in each release. - home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment? + home-manager.users.caspervk.home.stateVersion = "24.05"; # Did you read the comment? } diff --git a/hosts/zeta/default.nix b/hosts/zeta/default.nix index 8544b97..3ec76e6 100644 --- a/hosts/zeta/default.nix +++ b/hosts/zeta/default.nix @@ -25,7 +25,7 @@ # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "23.11"; # Did you read the comment? + system.stateVersion = "24.05"; # Did you read the comment? # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage @@ -34,5 +34,5 @@ # You can update Home Manager without changing this value. See # the Home Manager release notes for a list of state version # changes in each release. - home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment? + home-manager.users.caspervk.home.stateVersion = "24.05"; # Did you read the comment? } diff --git a/modules/base/network.nix b/modules/base/network.nix index 96be7c9..81cb9e3 100644 --- a/modules/base/network.nix +++ b/modules/base/network.nix @@ -15,7 +15,7 @@ }; # TODO: these systemd networkd settings will be the default once - # https://github.com/NixOS/nixpkgs/pull/202488 is merged. + # https://github.com/NixOS/nixpkgs/pull/264967 is merged. networking.useNetworkd = true; systemd.network.enable = true; @@ -50,7 +50,7 @@ # Resolved falls back to DNS servers operated by American internet # surveillance and adtech companies by default. No thanks, I'd rather have # no DNS at all. - fallbackDns = config.networking.nameservers; + fallbackDns = []; }; # TCP BBR has significantly increased throughput and reduced latency. Note diff --git a/modules/base/nix.nix b/modules/base/nix.nix index e6f61ad..e85a53d 100644 --- a/modules/base/nix.nix +++ b/modules/base/nix.nix @@ -1,4 +1,5 @@ { + config, nix-index-database, nixpkgs-unstable, nixpkgs, @@ -35,20 +36,19 @@ # The nix registry is used to refer to flakes using symbolic identifiers # when running commands such as `nix run nixpkgs#hello`. By default, - # the global registry from [1] is used, which aliases `nixpkgs` to the - # nixpkgs-unstable branch. We overwrite the default global `nixpkgs` - # registry with one which refers to the same nixpkgs as the rest of - # the system, aligning it with flake.lock. - # [1] https://github.com/NixOS/flake-registry/blob/master/flake-registry.json + # `nixpkgs` is an alias of the system's nixpkgs, but no such alias is made + # for unstable. registry = { - nixpkgs.flake = nixpkgs; nixpkgs-unstable.flake = nixpkgs-unstable; }; }; # The system-wide garbage collection service configured above does not know - # about our user profile. TODO: 24.04 - # home-manager.users.caspervk.nix.gc = config.nix.gc; + # about our user profile. + home-manager.users.caspervk.nix.gc = { + inherit (config.nix.gc) automatic options; + frequency = config.nix.gc.dates; + }; # Run unpatched dynamic binaries on NixOS. # https://github.com/Mic92/nix-ld diff --git a/modules/desktop/foot.nix b/modules/desktop/foot.nix index cc01e63..1b752ec 100644 --- a/modules/desktop/foot.nix +++ b/modules/desktop/foot.nix @@ -1,15 +1,9 @@ -{ - home-manager, - nixpkgs-unstable, - ... -}: { +{home-manager, ...}: { # Terminal emulator # https://codeberg.org/dnkl/foot home-manager.users.caspervk = { programs.foot = { enable = true; - # TODO: remove version override in NixOS v24.04 - package = nixpkgs-unstable.legacyPackages.x86_64-linux.foot; # https://man.archlinux.org/man/foot.ini.5.en settings = { main = { diff --git a/modules/desktop/network.nix b/modules/desktop/network.nix index 40a2c36..248ab4e 100644 --- a/modules/desktop/network.nix +++ b/modules/desktop/network.nix @@ -28,6 +28,6 @@ # a different service is responsible for managing the system's internet # connection (for example, NetworkManager), this service is unnecessary and # can be disabled. - # https://search.nixos.org/options?channel=23.11&show=systemd.network.wait-online.enable + # https://search.nixos.org/options?channel=24.05&show=systemd.network.wait-online.enable systemd.network.wait-online.enable = false; } diff --git a/modules/desktop/rofi.nix b/modules/desktop/rofi.nix index 5c4ca71..741902d 100644 --- a/modules/desktop/rofi.nix +++ b/modules/desktop/rofi.nix @@ -15,12 +15,13 @@ package = pkgs.rofi-wayland; theme = "android_notification"; extraConfig = { - modes = "drun,emoji"; + modes = "drun"; # TODO: drun,emoji show-icons = true; }; - plugins = with pkgs; [ - rofi-emoji - ]; + # TODO + # plugins = with pkgs; [ + # rofi-emoji + # ]; }; }; } diff --git a/modules/desktop/ssh.nix b/modules/desktop/ssh.nix index e5ad5a1..c3ba3c8 100644 --- a/modules/desktop/ssh.nix +++ b/modules/desktop/ssh.nix @@ -13,13 +13,9 @@ # to the mess that is IPv6. Force keepalive packets to avoid sessions # dying. See https://news.ycombinator.com/item?id=25737611. serverAliveInterval = 25; - # TODO: use addKeysToAgent attribute in Home Manager 24.04 instead of - # extraConfig. - extraConfig = '' - # Add ssh keys to the agent the first time we unlock them so we don't - # have to type the password all the time. - AddKeysToAgent yes - ''; + # Add ssh keys to the agent the first time we unlock them so we don't + # have to type the password all the time. + addKeysToAgent = "yes"; }; }; diff --git a/modules/desktop/sway.nix b/modules/desktop/sway.nix index 715decd..7c3420f 100644 --- a/modules/desktop/sway.nix +++ b/modules/desktop/sway.nix @@ -45,6 +45,7 @@ }; }; modifier = "Mod4"; # super + defaultWorkspace = "workspace number 1"; keybindings = lib.mkOptionDefault { # Menu "Mod4+backspace" = "exec rofi -show drun"; @@ -139,7 +140,7 @@ src = "${pkgs.waybar}/etc/xdg/waybar"; installPhase = '' # JSON isn't valid if it contains comments - sed 's#//.*##' config | ${pkgs.jq}/bin/jq > $out + sed 's#//.*##' config.jsonc | ${pkgs.jq}/bin/jq > $out ''; }; defaultConfig = builtins.fromJSON (lib.readFile "${mkDefaultConfig}"); diff --git a/overlays/default.nix b/overlays/default.nix index 8fcb7cf..d854dcc 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,3 +1,3 @@ {...}: { - imports = [./forgejo-actions-runner.nix]; + imports = []; } diff --git a/overlays/forgejo-actions-runner.nix b/overlays/forgejo-actions-runner.nix deleted file mode 100644 index 4812939..0000000 --- a/overlays/forgejo-actions-runner.nix +++ /dev/null @@ -1,24 +0,0 @@ -{...}: { - # Running containers without /bin/sleep (such as nixos) requires newer - # forgejo act runner. See https://codeberg.org/forgejo/forgejo/issues/2611. - nixpkgs.overlays = [ - (final: prev: { - forgejo-actions-runner = prev.callPackage "${prev.path}/pkgs/development/tools/continuous-integration/forgejo-actions-runner" { - buildGoModule = args: - prev.buildGoModule (args - // rec { - version = "3.4.1"; - - src = prev.fetchFromGitea { - domain = "codeberg.org"; - owner = "forgejo"; - repo = "runner"; - rev = "v${version}"; - hash = "sha256-c8heIHt+EJ6LnZT4/6TTWd7v85VRHjH72bdje12un4M="; - }; - vendorHash = "sha256-FCCQZdAYRtJR3DGQIEvUzv+1kqvxVTGkwJwZSohq28s="; - }); - }; - }) - ]; -}