refactor(flake): rm unneeded stuff
This commit is contained in:
parent
b0da00aefd
commit
65655e8391
1 changed files with 14 additions and 15 deletions
15
flake.nix
15
flake.nix
|
@ -9,23 +9,22 @@
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
supportedSystems = [
|
forEachSupportedSystem =
|
||||||
|
f:
|
||||||
|
nixpkgs.lib.genAttrs
|
||||||
|
[
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
"x86_64-darwin"
|
"x86_64-darwin"
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
];
|
]
|
||||||
forEachSupportedSystem =
|
(
|
||||||
f:
|
|
||||||
nixpkgs.lib.genAttrs supportedSystems (
|
|
||||||
system:
|
system:
|
||||||
f {
|
f {
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
# args will later be used in outputs to inherit the flake and its inputs for use in modules.
|
|
||||||
args = { inherit self inputs; };
|
args = { inherit self inputs; };
|
||||||
# mkSystem lets us repeat the same config for multiple systems, called later in outputs.
|
|
||||||
mkSystem =
|
mkSystem =
|
||||||
hostname:
|
hostname:
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
|
@ -36,7 +35,7 @@
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true; # inherit the nixpkgs and its config
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = args;
|
extraSpecialArgs = args;
|
||||||
users.rafiq.imports = [
|
users.rafiq.imports = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue