changed github email, removed home-manager and changed nixPath generation

This commit is contained in:
ISnortPennies 2023-02-04 22:44:01 -05:00
parent fb0c186896
commit f049f7fe37
6 changed files with 26 additions and 101 deletions

67
flake.lock generated
View file

@ -8,15 +8,15 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1675282109, "lastModified": 1675550670,
"narHash": "sha256-0XuyVuT3OowRiQyzuvFl6PvxLMqmIjtInBzu7Oxmrk8=", "narHash": "sha256-0XuyVuT3OowRiQyzuvFl6PvxLMqmIjtInBzu7Oxmrk8=",
"owner": "ISnortPennies", "owner": "Gerg-L",
"repo": "fetch-rs", "repo": "fetch-rs",
"rev": "764f96781597de3130c54624340b9ee26d19aca3", "rev": "aca3e2db71a9b11b0201fd609d0be6b8eeac86ed",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "ISnortPennies", "owner": "Gerg-L",
"repo": "fetch-rs", "repo": "fetch-rs",
"type": "github" "type": "github"
} }
@ -51,27 +51,6 @@
"type": "github" "type": "github"
} }
}, },
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"utils": "utils"
},
"locked": {
"lastModified": 1675462931,
"narHash": "sha256-JiOUSERBtA1lN/s9YTKGZoZ3XUicHDwr+C8swaPSh3M=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "e2c1756e3ae001ca8696912016dd31cb1503ccf3",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1675454231, "lastModified": 1675454231,
@ -98,13 +77,13 @@
"locked": { "locked": {
"lastModified": 1675536108, "lastModified": 1675536108,
"narHash": "sha256-HjWJ7HF77U32QLsRWZGrrZXW3lnq7iYPZ6as+Je5dwQ=", "narHash": "sha256-HjWJ7HF77U32QLsRWZGrrZXW3lnq7iYPZ6as+Je5dwQ=",
"owner": "ISnortPennies", "owner": "Gerg-L",
"repo": "nvim-config", "repo": "nvim-config",
"rev": "cda439a36bf6677fe4c8ebddf7e59e2df2742059", "rev": "cda439a36bf6677fe4c8ebddf7e59e2df2742059",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "ISnortPennies", "owner": "Gerg-L",
"repo": "nvim-config", "repo": "nvim-config",
"type": "github" "type": "github"
} }
@ -112,7 +91,6 @@
"root": { "root": {
"inputs": { "inputs": {
"fetch-rs": "fetch-rs", "fetch-rs": "fetch-rs",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nvim-config": "nvim-config", "nvim-config": "nvim-config",
"spicetify-nix": "spicetify-nix", "spicetify-nix": "spicetify-nix",
@ -127,15 +105,15 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1674530093, "lastModified": 1675557167,
"narHash": "sha256-iOV4gzi/ZXU1wNjsCmwAgi2ziqGWGTXQjJUiWVEkb44=", "narHash": "sha256-L1PZV1sYymzyklrluQ39J0yJQDPIv6W7eMogwv4hoOY=",
"owner": "the-argus", "owner": "Gerg-L",
"repo": "spicetify-nix", "repo": "spicetify-nix",
"rev": "f551a7485fc4d6021583fd274f7f040b23799a7e", "rev": "b32952b5928c9ea74882c6e7889d6393e9336b9d",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "the-argus", "owner": "Gerg-L",
"repo": "spicetify-nix", "repo": "spicetify-nix",
"type": "github" "type": "github"
} }
@ -149,13 +127,13 @@
"locked": { "locked": {
"lastModified": 1674960943, "lastModified": 1674960943,
"narHash": "sha256-BotT9GZYgOxXUJwkL4bDmqhjESlpx7Q2BTS2iWMK+Z4=", "narHash": "sha256-BotT9GZYgOxXUJwkL4bDmqhjESlpx7Q2BTS2iWMK+Z4=",
"owner": "ISnortPennies", "owner": "Gerg-L",
"repo": "suckless", "repo": "suckless",
"rev": "efe8a86ab187163c83cb2a7833e5558b2f41ca4e", "rev": "efe8a86ab187163c83cb2a7833e5558b2f41ca4e",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "ISnortPennies", "owner": "Gerg-L",
"repo": "suckless", "repo": "suckless",
"type": "github" "type": "github"
} }
@ -169,31 +147,16 @@
"locked": { "locked": {
"lastModified": 1674954890, "lastModified": 1674954890,
"narHash": "sha256-KRgIRX66funp1WdPeiKvHLZeMPoV7+0rkkzTC2MiGFk=", "narHash": "sha256-KRgIRX66funp1WdPeiKvHLZeMPoV7+0rkkzTC2MiGFk=",
"owner": "ISnortPennies", "owner": "Gerg-L",
"repo": "sxhkd-flake", "repo": "sxhkd-flake",
"rev": "0c4fd3eb98f8ac5b4e5168c529c0c6d0e70de690", "rev": "0c4fd3eb98f8ac5b4e5168c529c0c6d0e70de690",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "ISnortPennies", "owner": "Gerg-L",
"repo": "sxhkd-flake", "repo": "sxhkd-flake",
"type": "github" "type": "github"
} }
},
"utils": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -1,28 +1,24 @@
{ {
inputs = { inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable; nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
home-manager = {
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = { spicetify-nix = {
url = github:the-argus/spicetify-nix; url = github:Gerg-L/spicetify-nix;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
suckless = { suckless = {
url = github:ISnortPennies/suckless; url = github:Gerg-L/suckless;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nvim-config = { nvim-config = {
url = github:ISnortPennies/nvim-config; url = github:Gerg-L/nvim-config;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
sxhkd-flake = { sxhkd-flake = {
url = github:ISnortPennies/sxhkd-flake; url = github:Gerg-L/sxhkd-flake;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
fetch-rs = { fetch-rs = {
url = github:ISnortPennies/fetch-rs; url = github:Gerg-L/fetch-rs;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
@ -62,8 +58,6 @@
}; };
modules = [ modules = [
inputs.sxhkd-flake.nixosModules.sxhkd inputs.sxhkd-flake.nixosModules.sxhkd
inputs.home-manager.nixosModules.home-manager
./home-manager
./common.nix ./common.nix
./systems/desktop.nix ./systems/desktop.nix
./nix.nix ./nix.nix
@ -80,8 +74,6 @@
}; };
}; };
modules = [ modules = [
inputs.home-manager.nixosModules.home-manager
./home-manager
./common.nix ./common.nix
./systems/laptop.nix ./systems/laptop.nix
./nix.nix ./nix.nix

View file

@ -1,25 +0,0 @@
{
settings,
lib,
inputs,
...
}: {
home-manager = {
useGlobalPkgs = true;
useUserPackages = false;
extraSpecialArgs = {inherit inputs settings;};
users = {
${settings.username} = {
imports =
[
./spicetify.nix
];
xsession.numlock.enable = true;
home = {
homeDirectory = "/home/${settings.username}";
stateVersion = settings.version;
};
};
};
};
}

View file

@ -6,7 +6,7 @@
sp-nix = inputs.spicetify-nix; sp-nix = inputs.spicetify-nix;
spicePkgs = sp-nix.packages.${pkgs.system}.default; spicePkgs = sp-nix.packages.${pkgs.system}.default;
in { in {
imports = [sp-nix.homeManagerModule]; imports = [sp-nix.nixosModule];
programs.spicetify = { programs.spicetify = {
spotifyPackage = pkgs.spotify-unwrapped; spotifyPackage = pkgs.spotify-unwrapped;
spicetifyPackage = pkgs.spicetify-cli; spicetifyPackage = pkgs.spicetify-cli;

14
nix.nix
View file

@ -1,25 +1,19 @@
{ {
inputs, inputs,
lib, lib,
config,
... ...
}: { }: {
environment.etc = { environment.etc = {
"nix/flake-channels/system".source = inputs.self; "nix/flake-channels/system".source = inputs.self;
"nix/flake-channels/nixpkgs".source = inputs.nixpkgs.outPath; "nix/flake-channels/nixpkgs".source = inputs.nixpkgs.outPath;
"nix/flake-channels/home-manager".source = inputs.home-manager.outPath;
}; };
nix = { nix = {
nixPath = [ nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
"nixpkgs=/etc/nix/flake-channels/nixpkgs"
"home-manager=/etc/nix/flake-channels/home-manager"
];
#automatically get registry from input flakes #automatically get registry from input flakes
registry = registry =
{ lib.attrsets.mapAttrs (
system.flake = inputs.self;
default.flake = inputs.nixpkgs;
}
// lib.attrsets.mapAttrs (
_: source: { _: source: {
flake = source; flake = source;
} }

View file

@ -18,6 +18,7 @@
"sxhkd" "sxhkd"
"theme" "theme"
"vfio" "vfio"
"spicetify"
#"mining" #"mining"
]; ];
in in