Add configuration for Shire

This commit is contained in:
Marko Korhonen 2024-09-28 20:37:10 +03:00
parent f0daaba8a7
commit 3ac81e8aef
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
4 changed files with 43 additions and 16 deletions

View file

@ -17,26 +17,27 @@
};
outputs = { nixpkgs, home-manager, nur, ... } @inputs:
{
nixosConfigurations.Mirkwood = nixpkgs.lib.nixosSystem {
let
configureNixSystem = hostname: nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/Mirkwood/configuration.nix
./nixos_common.nix
{ nixpkgs.overlays = [ nur.overlay ]; }
# Host specific configuration
./hosts/${hostname}/configuration.nix
# Common settings for all hosts
({ pkgs, ... }: import ./nixos_common.nix
{ inherit inputs; inherit pkgs; })
# home-manager
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
backupFileExtension = "bak";
users.functionalhacker =
import ./users/functionalhacker/home.nix;
};
}
({ ... }: import ./home-manager.nix { inherit inputs; })
];
};
in
{
nixosConfigurations = {
Mirkwood = configureNixSystem "Mirkwood";
Shire = configureNixSystem "Shire";
};
};
}

12
home-manager.nix Normal file
View file

@ -0,0 +1,12 @@
{ inputs, ... }:
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
backupFileExtension = "bak";
users.functionalhacker =
import ./users/functionalhacker/home.nix;
};
}

View file

@ -0,0 +1,12 @@
{ ... }:
{
imports = [
./hardware-configuration.nix
../../wifi.nix
];
networking.hostName = "Shire";
# TODO
}

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, inputs, ... }:
{
imports = [
@ -7,6 +7,8 @@
./users/som/configuration.nix
];
nixpkgs.overlays = [ inputs.nur.overlay ];
system.stateVersion = "24.05";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
time.timeZone = "Europe/Helsinki";