feasible config for the beginning
This commit is contained in:
parent
b4c2ba8174
commit
25d5980e6c
13 changed files with 563 additions and 203 deletions
51
flake.nix
51
flake.nix
|
|
@ -9,38 +9,27 @@
|
|||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self, nixpkgs, ...
|
||||
} @ inputs: let
|
||||
systems = [
|
||||
"aarch64-linux"
|
||||
"i686-linux"
|
||||
"x86_64-linux"
|
||||
"aarch64-darwin"
|
||||
"x86_64-darwin"
|
||||
];
|
||||
# This is a function that generates an attribute by calling a function you
|
||||
# pass to it, with each system as an argument
|
||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||
systemModules = import ./modules/system;
|
||||
homeModules = import ./modules/home;
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
default = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs systemModules homeModules;};
|
||||
modules = [
|
||||
./hosts/default/configuration.nix
|
||||
];
|
||||
};
|
||||
|
||||
remus = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs systemModules homeModules;};
|
||||
modules = [
|
||||
./hosts/remus/configuration.nix
|
||||
];
|
||||
};
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {...} @ inputs: let
|
||||
# basic boilerplate-reducing lib with a bunch of functions
|
||||
helperLib = import ./helperLib/default.nix {inherit inputs;};
|
||||
in
|
||||
with helperLib; {
|
||||
nixosConfigurations = {
|
||||
remus = mkSystem ./hosts/remus/configuration.nix;
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
"prunebutt@remus" = mkHome "x86_64-linux" ./hosts/remus/home.nix;
|
||||
};
|
||||
|
||||
homeManagerModules.default = ./modules/home;
|
||||
nixosModules.default = ./modules/nixOS;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue