nix machine / user configurations

fix

Changed files
+12 -3
hosts
modules
pkgs-set
users
patriot
+5 -1
hosts/default.nix
···
modules =
baseModules
++ [
-
{nixpkgs.pkgs = pkgs;}
+
{
+
nixpkgs = {
+
inherit pkgs;
+
};
+
}
(import (./. + "/${name}/default.nix"))
];
specialArgs = {
+2 -1
modules/base/default.nix
···
...
}: let
inherit (lib) fileContents mkIf;
-
inherit (tlib) pkgBin;
coreBin = v: "${pkgs.coreutils}/bin/${v}";
nixBin = "${config.nix.package}/bin/nix";
+
pkgBin = tlib.pkgBin pkgs;
in {
imports = [
./nix.nix
···
'';
users.mutableUsers = false;
programs.command-not-found.enable = false;
+
nixpkgs.config.allowUnfree = true;
}
+2
pkgs-set/default.nix
···
(lib.readDir ./overlays);
unstablePkgs = import unstable {
inherit system;
+
config.allowUnfree = true;
};
pkgs = import stable {
inherit system;
+
config.allowUnfree = true;
overlays = [(_: _: import ./from-unstable.nix unstablePkgs)] ++ overlays;
};
in
+2
pkgs-set/from-unstable.nix
···
alejandra
rnix-lsp
chromium
+
rofi-wayland
+
vscode
;
}
+1 -1
users/patriot/default.nix
···
};
wayland.windowManager = {
sway = let
-
mkRofiCmd = args: "${config.programs.rofi.finalPackage}/bin/rofi ${lib.concatStringsSep " " args} | ${pkgs.sway}/bin/swaymsg --";
+
mkRofiCmd = args: "${config.programs.rofi.package}/bin/rofi ${lib.concatStringsSep " " args} | ${pkgs.sway}/bin/swaymsg --";
in {
enable = true;
extraSessionCommands = extraEnv;