cleaning up specialArgs

This commit is contained in:
Gerg-L 2023-02-23 20:28:46 -05:00
parent 3befa64d21
commit 3d8dd7c92c
5 changed files with 9 additions and 17 deletions

View file

@ -48,10 +48,9 @@
gerg-desktop = unstable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs self;
inherit self;
settings = {
username = "gerg";
hostname = "gerg-desktop";
};
};
@ -69,10 +68,9 @@
game-laptop = unstable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs self;
inherit self;
settings = {
username = "games";
hostname = "game-laptop";
};
};
modules = [
@ -83,10 +81,9 @@
moms-laptop = unstable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs self;
inherit self;
settings = {
username = "jo";
hostname = "moms-laptop";
};
};
modules = [

View file

@ -1,9 +1,4 @@
{
nix,
unstable,
...
}: {
inputs,
inputs: {
lib,
self,
settings,
@ -26,12 +21,12 @@
inputs
)
// {
nixpkgs.flake = unstable;
nixpkgs.flake = inputs.unstable;
system.flake = self;
}
);
#automatically add registry entries to nixPath
nixPath = (lib.mapAttrsToList (name: value: name + "=" + value) inputs) ++ ["system=${self}" "nixpkgs=${unstable}"];
nixPath = (lib.mapAttrsToList (name: value: name + "=" + value) inputs) ++ ["system=${self}" "nixpkgs=${inputs.unstable}"];
settings = {
experimental-features = ["nix-command" "flakes" "repl-flake"];
auto-optimise-store = true;

View file

@ -35,7 +35,7 @@ inputs: {
inputs.suckless.packages.${pkgs.system}.st
];
networking = {
hostName = settings.hostname;
hostName = "game-laptop";
networkmanager.enable = true;
};
users = {

View file

@ -48,7 +48,7 @@ inputs: {
systemd.tmpfiles.rules = ["L+ /home/gerg/.config/WebCord/Themes/black - - - - ${self}/misc/black.theme.css"];
networking = {
hostName = settings.hostname;
hostName = "gerg-desktop";
hostId = "288b56db";
useDHCP = false;
dhcpcd.enable = false;

View file

@ -30,7 +30,7 @@ inputs: {
];
services.xserver.videoDrivers = ["intel"];
networking = {
hostName = settings.hostname;
hostName = "mom-laptop";
networkmanager.enable = true;
};
boot.kernelPackages = pkgs.linuxPackages_latest;