diff --git a/flake.nix b/flake.nix index 0cb85218..52cc1d4c 100644 --- a/flake.nix +++ b/flake.nix @@ -46,9 +46,7 @@ outputs = { self, nixpkgs, sops-nix, deploy-rs, ... } @inputs: let inherit (self) outputs; - stateVersion = "23.11"; - hmStateVersion = "23.11"; - libx = import ./lib/default.nix { inherit self inputs outputs stateVersion hmStateVersion; }; + libx = import ./lib/default.nix { inherit self inputs outputs; }; in { nixosConfigurations = { # Linode VMs diff --git a/home-manager/common/software/cli/nixvim/alpha.nix b/home-manager/common/software/cli/nixvim/alpha.nix index b07ec04c..63df7224 100644 --- a/home-manager/common/software/cli/nixvim/alpha.nix +++ b/home-manager/common/software/cli/nixvim/alpha.nix @@ -21,6 +21,8 @@ [ (mkPadding 6) (mkText '' + + ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣶⣿⣿⣶⡄⠱⣦⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⡿⠛⠉⡙⣿⣿⡄⢹⣧⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⡿⢋⣠⠾⠋⠉⢹⣿⣷⢸⣿⡆⠀ diff --git a/home-manager/default.nix b/home-manager/default.nix index 5987e019..12495df6 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -1,4 +1,4 @@ -{ lib, inputs, hostname, username, desktop, hmStateVersion, system, ... }: { +{ lib, inputs, hostname, username, desktop, ... }: { imports = [ # Common configs ./common/software/cli @@ -24,7 +24,7 @@ news.display = "silent"; home = { inherit username; - stateVersion = hmStateVersion; + stateVersion = "23.11"; homeDirectory = "/home/${username}"; sessionPath = [ "$HOME/.local/bin" ]; }; diff --git a/home-manager/image.nix b/home-manager/image.nix index 89f5ebf1..8e28b6c3 100644 --- a/home-manager/image.nix +++ b/home-manager/image.nix @@ -1,4 +1,4 @@ -{ lib, inputs, hostname, username, desktop, hmStateVersion, isImage, ... }: { +{ lib, inputs, hostname, username, desktop, ... }: { imports = [ # Common configs ./common/software/cli @@ -23,7 +23,7 @@ news.display = "silent"; home = { inherit username; - stateVersion = hmStateVersion; + stateVersion = "23.11"; homeDirectory = "/home/${username}"; sessionPath = [ "$HOME/.local/bin" ]; }; diff --git a/home-manager/small.nix b/home-manager/small.nix index 501b1976..efe1b3b9 100644 --- a/home-manager/small.nix +++ b/home-manager/small.nix @@ -1,4 +1,4 @@ -{ lib, inputs, hostname, username, desktop, hmStateVersion, ... }: { +{ lib, inputs, hostname, username, desktop, ... }: { imports = [ # Common configs ./common/software/cli/fish.nix @@ -33,7 +33,7 @@ news.display = "silent"; home = { inherit username; - stateVersion = hmStateVersion; + stateVersion = "23.11"; homeDirectory = "/home/${username}"; sessionPath = [ "$HOME/.local/bin" ]; }; diff --git a/lib/default.nix b/lib/default.nix index 4bcb97fd..a98a49ad 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -1,4 +1,4 @@ -{ lib ? lib, self, inputs, outputs, stateVersion, hmStateVersion , ... }: { +{ lib ? lib, self, inputs, outputs, ... }: { deploy = { hostname, system ? "x86_64-linux", @@ -26,7 +26,7 @@ type ? "default", }: inputs.home-manager.lib.homeManagerConfiguration { pkgs = inputs.nixpkgs.legacyPackages.${system}; - extraSpecialArgs = { inherit inputs outputs desktop hostname system username hmStateVersion theme; }; + extraSpecialArgs = { inherit inputs outputs desktop hostname system username theme; }; modules = [ ../home-manager/${type}.nix ]; }; @@ -57,16 +57,17 @@ localAddress = "192.168.2.${ip}"; restartIfChanged = true; enableTun = true; - specialArgs = { inherit pkgs-unstable hostname username desktop theme system repo unfree stateVersion ip deployment_type host; }; - config = { hostname, username, desktop, theme, system, stateVersion, host, ... }: { + specialArgs = { inherit pkgs-unstable hostname username desktop theme system repo unfree ip deployment_type host; }; + config = { hostname, username, desktop, theme, system, host, ... }: { nixpkgs.pkgs = pkgs; imports = [ ../nixos/containers inputs.sops-nix.nixosModules.sops inputs.home-manager.nixosModules.home-manager { - home-manager.extraSpecialArgs = { inherit host inputs outputs desktop hostname username hmStateVersion stateVersion system theme ; }; + home-manager.extraSpecialArgs = { inherit host inputs outputs desktop hostname username system theme; }; home-manager.users."${username}" = import ../home-manager; + # home-manager.useGlobalPkgs = true; } ]; }; @@ -86,7 +87,7 @@ deployment_type ? "hosts", }: inputs.${repo}.lib.nixosSystem { specialArgs = { - inherit inputs outputs desktop hostname username hmStateVersion stateVersion gpu system theme self deployment_type; + inherit inputs outputs desktop hostname username gpu system theme self deployment_type; pkgs-unstable = let packages = (import ./packages.nix { inherit inputs repo system unfree; }); in packages.pkgs-unstable; }; @@ -113,7 +114,7 @@ unfree ? false }: inputs.${repo}.lib.nixosSystem { specialArgs = { - inherit inputs outputs desktop hostname username hmStateVersion stateVersion gpu system theme self deployment_type; + inherit inputs outputs desktop hostname username gpu system theme self deployment_type; # Choose whether to pull from stable or unstable pkgs = let packages = (import ./packages.nix { inherit inputs repo system unfree; }); in packages.pkgs; pkgs-unstable = let packages = (import ./packages.nix { inherit inputs repo system unfree; }); in packages.pkgs-unstable; @@ -140,7 +141,7 @@ format }: inputs.nixos-generators.nixosGenerate { specialArgs = { - inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu system theme format; + inherit inputs outputs desktop hostname username gpu system theme format; # Choose whether to pull from stable or unstable pkgs = let packages = (import ./packages.nix { inherit inputs repo system unfree; }); in packages.pkgs; pkgs-unstable = let packages = (import ./packages.nix { inherit inputs repo system unfree; }); in packages.pkgs-unstable; @@ -155,7 +156,7 @@ inputs.sops-nix.nixosModules.sops inputs.lanzaboote.nixosModules.lanzaboote inputs.home-manager.nixosModules.home-manager { - home-manager.extraSpecialArgs = { inherit inputs outputs desktop hostname username hmStateVersion stateVersion gpu system theme format; }; + home-manager.extraSpecialArgs = { inherit inputs outputs desktop hostname username gpu system theme format; }; home-manager.users."${username}" = import ../home-manager; } ]; @@ -174,7 +175,7 @@ format }: inputs.nixos-generators.nixosGenerate { specialArgs = { - inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu system theme format; + inherit inputs outputs desktop hostname username gpu system theme format; # Choose whether to pull from stable or unstable pkgs = let packages = (import ./packages.nix { inherit inputs repo system unfree; }); in packages.pkgs; pkgs-unstable = let packages = (import ./packages.nix { inherit inputs repo system unfree; }); in packages.pkgs-unstable; diff --git a/nixos/common/modules/nixos.nix b/nixos/common/modules/nixos.nix index 8ee44ca0..406ed4a7 100644 --- a/nixos/common/modules/nixos.nix +++ b/nixos/common/modules/nixos.nix @@ -1,4 +1,4 @@ -{ pkgs, system, stateVersion, ... }: { +{ pkgs, system, ... }: { nix = { settings = { auto-optimise-store = true; @@ -36,6 +36,6 @@ }; }; - system.stateVersion = stateVersion; + system.stateVersion = "23.11"; nixpkgs.hostPlatform = system; } diff --git a/nixos/containers/default.nix b/nixos/containers/default.nix index 4cfd7aaf..32ed1afe 100644 --- a/nixos/containers/default.nix +++ b/nixos/containers/default.nix @@ -1,4 +1,4 @@ -{ timezone, host, ip, stateVersion, hostname, ... }: { +{ host, ip, hostname, ... }: { imports = [ ./${hostname} # Modules @@ -25,7 +25,7 @@ }; }; - system.stateVersion = stateVersion; + system.stateVersion = "23.11"; networking.hostName = "${hostname}-${host}"; programs.fish.enable = true; diff --git a/nixos/hosts/framework-server/containers.nix b/nixos/hosts/framework-server/containers.nix index 9927fed0..e2d91c17 100644 --- a/nixos/hosts/framework-server/containers.nix +++ b/nixos/hosts/framework-server/containers.nix @@ -1,6 +1,6 @@ -{ hostname, lib, self, inputs, outputs, stateVersion, hmStateVersion, ... }: +{ hostname, lib, self, inputs, outputs, ... }: let - libx = import ../../../lib { inherit lib self inputs outputs stateVersion hmStateVersion; }; + libx = import ../../../lib { inherit lib self inputs outputs; }; in { containers = { diff --git a/nixos/hosts/nuc-server/containers.nix b/nixos/hosts/nuc-server/containers.nix index 9927fed0..e2d91c17 100644 --- a/nixos/hosts/nuc-server/containers.nix +++ b/nixos/hosts/nuc-server/containers.nix @@ -1,6 +1,6 @@ -{ hostname, lib, self, inputs, outputs, stateVersion, hmStateVersion, ... }: +{ hostname, lib, self, inputs, outputs, ... }: let - libx = import ../../../lib { inherit lib self inputs outputs stateVersion hmStateVersion; }; + libx = import ../../../lib { inherit lib self inputs outputs; }; in { containers = { diff --git a/nixos/hosts/warsaw-ovh-01/containers.nix b/nixos/hosts/warsaw-ovh-01/containers.nix index 9927fed0..e2d91c17 100644 --- a/nixos/hosts/warsaw-ovh-01/containers.nix +++ b/nixos/hosts/warsaw-ovh-01/containers.nix @@ -1,6 +1,6 @@ -{ hostname, lib, self, inputs, outputs, stateVersion, hmStateVersion, ... }: +{ hostname, lib, self, inputs, outputs, ... }: let - libx = import ../../../lib { inherit lib self inputs outputs stateVersion hmStateVersion; }; + libx = import ../../../lib { inherit lib self inputs outputs; }; in { containers = {