Slight refactor to main flake, enable vim as systme package for all
systems
This commit is contained in:
parent
50611592c6
commit
70138db12d
1 changed files with 21 additions and 16 deletions
37
flake.nix
37
flake.nix
|
|
@ -61,6 +61,12 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
get_pkgs = { system }: import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
makeSystemConfig =
|
makeSystemConfig =
|
||||||
{
|
{
|
||||||
|
|
@ -70,17 +76,17 @@
|
||||||
extraModules ? [ ],
|
extraModules ? [ ],
|
||||||
specialArgs ? { },
|
specialArgs ? { },
|
||||||
}:
|
}:
|
||||||
builder {
|
let
|
||||||
|
pkgs = get_pkgs { inherit system; };
|
||||||
|
in builder {
|
||||||
inherit system;
|
inherit system;
|
||||||
pkgs = import nixpkgs {
|
pkgs = pkgs;
|
||||||
inherit system;
|
|
||||||
config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
modules = [
|
modules = [
|
||||||
{
|
{
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
nix.settings.experimental-features = "nix-command flakes";
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
vim
|
||||||
|
];
|
||||||
}
|
}
|
||||||
./nix/local_system.nix
|
./nix/local_system.nix
|
||||||
] ++ extraModules;
|
] ++ extraModules;
|
||||||
|
|
@ -93,14 +99,10 @@
|
||||||
name,
|
name,
|
||||||
system,
|
system,
|
||||||
extraModules ? [ ],
|
extraModules ? [ ],
|
||||||
}:
|
}: let
|
||||||
home-manager.lib.homeManagerConfiguration {
|
pkgs = get_pkgs { inherit system; };
|
||||||
pkgs = import nixpkgs {
|
in home-manager.lib.homeManagerConfiguration {
|
||||||
inherit system;
|
pkgs = pkgs;
|
||||||
config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
modules = [
|
modules = [
|
||||||
./nix/pkgs/home.nix
|
./nix/pkgs/home.nix
|
||||||
./nix/local_home.nix
|
./nix/local_home.nix
|
||||||
|
|
@ -128,7 +130,10 @@
|
||||||
name = "linux-x86";
|
name = "linux-x86";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
builder = lib.nixosSystem;
|
builder = lib.nixosSystem;
|
||||||
extraModules = [ ./nix/system/linux.nix ];
|
extraModules = [
|
||||||
|
./nix/system/linux.nix
|
||||||
|
./nix/system/linux_x86.nix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
"linux-aarch" = makeSystemConfig {
|
"linux-aarch" = makeSystemConfig {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue