initial commit
This commit is contained in:
commit
8ea01dbfac
11 changed files with 659 additions and 0 deletions
37
flake.nix
Normal file
37
flake.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
description = "My systems flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11-small";
|
||||
# home-manager = { };
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... } @ args:
|
||||
let
|
||||
nixosSystem = nixpkgs.lib.nixosSystem;
|
||||
mkMerge = nixpkgs.lib.mkMerge;
|
||||
settings = {
|
||||
system = {
|
||||
hostname = "gpdPocket3";
|
||||
architecture = "x86_64-linux";
|
||||
timeZone = "America/Chicago";
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
};
|
||||
user = {
|
||||
username = "josh";
|
||||
};
|
||||
usersDir = ./users;
|
||||
systemsDir = ./systems;
|
||||
commonDir = ./_common;
|
||||
flakeDir = ./.;
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations.${settings.system.hostname} = nixosSystem {
|
||||
system = settings.system.architecture;
|
||||
modules = [ ./systems/_common/configuration.nix ./systems/${settings.system.hostname}/configuration.nix ];
|
||||
specialArgs = args // { inherit settings; };
|
||||
};
|
||||
# homeConfigurations = { };
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue