diff --git a/flake.lock b/flake.lock index cf4544f..aee4658 100644 --- a/flake.lock +++ b/flake.lock @@ -173,24 +173,7 @@ "nixpkgs-unstable" ], "nixpkgs-unstable": "nixpkgs-unstable", - "nvf": "nvf", - "xcursor-plan9": "xcursor-plan9" - } - }, - "xcursor-plan9": { - "flake": false, - "locked": { - "lastModified": 1714831058, - "narHash": "sha256-74ykNDuknGdP6j+cS4ePtGTkGGLqQdpu54TuG7262QI=", - "owner": "wintermute-cell", - "repo": "xcursor-plan9", - "rev": "e0a605c16aff63f8eb958a8415441bf82de09245", - "type": "github" - }, - "original": { - "owner": "wintermute-cell", - "repo": "xcursor-plan9", - "type": "github" + "nvf": "nvf" } } }, diff --git a/flake.nix b/flake.nix index 423c8dc..b5a1583 100644 --- a/flake.nix +++ b/flake.nix @@ -18,9 +18,5 @@ url = "github:NotAShelf/nvf"; inputs.nixpkgs.follows = "nixpkgs-unstable"; }; - xcursor-plan9 = { - url = "github:wintermute-cell/xcursor-plan9"; - flake = false; - }; }; } diff --git a/modules/flake-parts.nix b/modules/flake-parts.nix index ded8a64..914be58 100644 --- a/modules/flake-parts.nix +++ b/modules/flake-parts.nix @@ -1,8 +1,4 @@ -{ - inputs, - systemConstants, - ... -}: { +{inputs, ...}: { flake-file.inputs = { flake-parts.url = "github:hercules-ci/flake-parts"; }; @@ -12,5 +8,5 @@ inputs.flake-parts.flakeModules.easyOverlay ]; - systems = systemConstants.infraSystems; + systems = ["x86_64-linux"]; } diff --git a/modules/home/primaryUser/home-packages.nix b/modules/home/primaryUser/home-packages.nix index 7c2667c..0a4ffd1 100644 --- a/modules/home/primaryUser/home-packages.nix +++ b/modules/home/primaryUser/home-packages.nix @@ -28,7 +28,7 @@ (bottles.override {removeWarningPopup = true;}) # development emacs - unstable.guile + unstable.racket ]; }; } diff --git a/modules/home/primaryUser/programs/git.nix b/modules/home/primaryUser/programs/git.nix index 6c34e8c..345daa3 100644 --- a/modules/home/primaryUser/programs/git.nix +++ b/modules/home/primaryUser/programs/git.nix @@ -14,7 +14,7 @@ includes = [ { - condition = "gitdir:${systemConstants.primaryUserInfraDirectory}"; + condition = "gitdir:${systemConstants.primaryUserHomeDirectory}/nixos/"; contents.core.sshCommand = "ssh -i ${systemConstants.primaryUserHomeDirectory}/.ssh/id_ed25519"; } ]; diff --git a/modules/home/primaryUser/programs/nvf.nix b/modules/home/primaryUser/programs/nvf.nix index 934d379..530ac70 100644 --- a/modules/home/primaryUser/programs/nvf.nix +++ b/modules/home/primaryUser/programs/nvf.nix @@ -35,10 +35,6 @@ }; }; - visuals = { - rainbow-delimiters.enable = true; - }; - clipboard = { enable = true; registers = "unnamedplus"; @@ -108,7 +104,7 @@ mode = "i"; key = ""; action = "λ"; - desc = "inserts lowercase lambda"; + desc = "inserts lambda"; } ]; diff --git a/modules/nixos/modules/home-manager.nix b/modules/nixos/modules/home-manager.nix index 0be6b9a..7d61999 100644 --- a/modules/nixos/modules/home-manager.nix +++ b/modules/nixos/modules/home-manager.nix @@ -1,10 +1,6 @@ -{ - inputs, - systemConstants, - ... -}: { +{inputs, ...}: { flake-file.inputs.home-manager = { - url = "github:nix-community/home-manager/release-${systemConstants.homeManagerStateVersion}"; + url = "github:nix-community/home-manager/release-26.05"; inputs.nixpkgs.follows = "nixpkgs"; }; diff --git a/modules/nixos/programs/nh.nix b/modules/nixos/programs/nh.nix deleted file mode 100644 index 8ace298..0000000 --- a/modules/nixos/programs/nh.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ - flake.modules.nixos.base = { - programs.nh.enable = true; - }; -} diff --git a/modules/nixos/system-packages.nix b/modules/nixos/system-packages.nix index a51976b..3b18369 100644 --- a/modules/nixos/system-packages.nix +++ b/modules/nixos/system-packages.nix @@ -1,6 +1,9 @@ { flake.modules.nixos.base = {pkgs, ...}: { environment.systemPackages = with pkgs; [ + nh + alejandra + git python315 # system utils file diff --git a/modules/nixpkgs.nix b/modules/nixpkgs.nix index 1a75531..d2e5002 100644 --- a/modules/nixpkgs.nix +++ b/modules/nixpkgs.nix @@ -12,7 +12,11 @@ in { nixpkgs-lib.follows = "nixpkgs-unstable"; }; - perSystem = {system, ...}: { + perSystem = { + final, + system, + ... + }: { _module.args.pkgs = import inputs.nixpkgs {inherit system overlays config;}; overlayAttrs.unstable = import inputs.nixpkgs-unstable {inherit system config;}; }; diff --git a/modules/packages/xcursor-plan9.nix b/modules/packages/xcursor-plan9.nix deleted file mode 100644 index 6e69670..0000000 --- a/modules/packages/xcursor-plan9.nix +++ /dev/null @@ -1,20 +0,0 @@ -{inputs, ...}: { - flake-file.inputs = { - xcursor-plan9 = { - url = "github:wintermute-cell/xcursor-plan9"; - flake = false; - }; - }; - - perSystem = { - config, - pkgs, - ... - }: { - packages.xcursor-plan9 = - (pkgs.callPackage (inputs.xcursor-plan9 + "/default.nix") {} ) - .overrideAttrs (_: {src = inputs.xcursor-plan9;}); - - overlayAttrs = {inherit (config.packages) xcursor-plan9;}; - }; -} diff --git a/modules/repository/fmt.nix b/modules/repository/fmt.nix deleted file mode 100644 index 84c51af..0000000 --- a/modules/repository/fmt.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ - perSystem = {pkgs, ...}: { - formatter = pkgs.alejandra; - }; -} diff --git a/modules/shells/direnv.nix b/modules/shells/direnv.nix deleted file mode 100644 index 8d11f93..0000000 --- a/modules/shells/direnv.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ - flake.modules.nixos.base = { - programs.direnv = { - enable = true; - nix-direnv.enable = true; - }; - }; -} diff --git a/modules/system-constants.nix b/modules/system-constants.nix index e65e5f9..78f6b86 100644 --- a/modules/system-constants.nix +++ b/modules/system-constants.nix @@ -11,27 +11,25 @@ config.systemConstants = rec { infraName = "chitin"; - infraSystems = ["x86_64-linux"]; repositoryOwnerUsername = "asnev"; repositoryOwnerEmail = "notasnev@proton.me"; nixpkgsStableVersion = "26.05"; nixpkgsAllowUnfree = true; - nixpkgsOverlays = [self.overlays.default]; + nixpkgsOverlays = [ + self.overlays.default + ]; phostronHostname = "phostron"; - phostronHostPlatform = lib.elemAt infraSystems 0; + phostronHostPlatform = "x86_64-linux"; phostronStateVersion = nixpkgsStableVersion; homeManagerStateVersion = nixpkgsStableVersion; primaryUserUsername = "coyote"; - primaryUserHomeDirectory = - if lib.hasSuffix "linux" phostronHostPlatform - then "/home/${primaryUserUsername}" - else throw "Unsupported platform. See `modules/system-constants.nix`."; - primaryUserInfraDirectory = "${primaryUserHomeDirectory}/code/${infraName}"; + primaryUserHomeDirectory = "/home/${primaryUserUsername}"; + primaryUserInfraDirectory = "${primaryUserHomeDirectory}/${infraName}"; primaryUserId = 1000; };