Scaffold nikita-nixos host
Add a second nixosConfigurations entry for a friend's machine running Plasma 6 + SDDM. The hardware-configuration.nix is a placeholder; it must be replaced with the output of nixos-generate-config on the actual hardware before installing. Git identity in hosts/nikita-nixos/ home.nix is also a placeholder.
This commit is contained in:
@@ -31,5 +31,10 @@
|
|||||||
username = "marvin";
|
username = "marvin";
|
||||||
homePath = ./hosts/hivebrain/home.nix;
|
homePath = ./hosts/hivebrain/home.nix;
|
||||||
};
|
};
|
||||||
|
nixosConfigurations.nikita-nixos = mkHost {
|
||||||
|
hostPath = ./hosts/nikita-nixos;
|
||||||
|
username = "nikita";
|
||||||
|
homePath = ./hosts/nikita-nixos/home.nix;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
25
hosts/nikita-nixos/default.nix
Normal file
25
hosts/nikita-nixos/default.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
# shared
|
||||||
|
../../system/boot.nix
|
||||||
|
../../system/networking.nix
|
||||||
|
../../system/locale.nix
|
||||||
|
../../system/fonts.nix
|
||||||
|
../../system/nix.nix
|
||||||
|
../../system/ssh.nix
|
||||||
|
../../system/programs.nix
|
||||||
|
../../system/packages.nix
|
||||||
|
|
||||||
|
# nikita-only
|
||||||
|
../../system/plasma.nix
|
||||||
|
../../system/display-managers/sddm.nix
|
||||||
|
../../system/users/nikita.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.hostName = "nikita-nixos";
|
||||||
|
system.stateVersion = "26.05";
|
||||||
|
}
|
||||||
24
hosts/nikita-nixos/hardware-configuration.nix
Normal file
24
hosts/nikita-nixos/hardware-configuration.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ lib, modulesPath, ... }:
|
||||||
|
|
||||||
|
# Placeholder hardware-configuration. Replace with the file generated on
|
||||||
|
# Nikita's actual machine via `nixos-generate-config --root /mnt` before
|
||||||
|
# building or installing.
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-label/PLACEHOLDER-ROOT";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
}
|
||||||
24
hosts/nikita-nixos/home.nix
Normal file
24
hosts/nikita-nixos/home.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../home/zsh.nix
|
||||||
|
../../home/fonts.nix
|
||||||
|
../../home/yazi.nix
|
||||||
|
../../home/symlinks.nix
|
||||||
|
../../home/packages-base.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home.username = "nikita";
|
||||||
|
home.homeDirectory = "/home/nikita";
|
||||||
|
home.stateVersion = "26.05";
|
||||||
|
|
||||||
|
# TODO: replace with Nikita's actual git identity before first use
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
settings.user = {
|
||||||
|
name = "Nikita";
|
||||||
|
email = "nikita@example.com";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
5
system/display-managers/sddm.nix
Normal file
5
system/display-managers/sddm.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.displayManager.sddm.enable = true;
|
||||||
|
}
|
||||||
5
system/plasma.nix
Normal file
5
system/plasma.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
}
|
||||||
12
system/users/nikita.nix
Normal file
12
system/users/nikita.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
users.users.nikita = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "wheel" "networkmanager" ];
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
packages = with pkgs; [
|
||||||
|
tree
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user