Add configuration for Shire
This commit is contained in:
parent
f0daaba8a7
commit
3ac81e8aef
4 changed files with 43 additions and 16 deletions
31
flake.nix
31
flake.nix
|
@ -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
12
home-manager.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
backupFileExtension = "bak";
|
||||
users.functionalhacker =
|
||||
import ./users/functionalhacker/home.nix;
|
||||
};
|
||||
}
|
12
hosts/Shire/configuration.nix
Normal file
12
hosts/Shire/configuration.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../wifi.nix
|
||||
];
|
||||
|
||||
networking.hostName = "Shire";
|
||||
|
||||
# TODO
|
||||
}
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue