work
This commit is contained in:
parent
e0f1f5b6fb
commit
e4ef84b32e
24 changed files with 131 additions and 189 deletions
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
age.secrets = lib.mkSecrets {"user-guest" = {};};
|
||||
|
||||
users.users.guest = {
|
||||
description = "Guest";
|
||||
uid = 1001;
|
||||
isNormalUser = true;
|
||||
hashedPasswordFile = config.age.secrets."user-guest".path;
|
||||
openssh.authorizedKeys.keys = builtins.attrValues config.pubkeys.users;
|
||||
};
|
||||
}
|
5
hosts/headful/work/distrobox.nix
Normal file
5
hosts/headful/work/distrobox.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = [
|
||||
pkgs.distrobox
|
||||
];
|
||||
}
|
5
hosts/headful/work/docker.nix
Normal file
5
hosts/headful/work/docker.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{config, ...}: {
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
users.groups.docker.members = config.users.normalUsers;
|
||||
}
|
25
hosts/headful/work/hardware.nix
Normal file
25
hosts/headful/work/hardware.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
inputs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
"${modulesPath}/installer/scan/not-detected.nix"
|
||||
|
||||
inputs.hardware.nixosModules.common-cpu-amd
|
||||
inputs.hardware.nixosModules.common-gpu-amd
|
||||
inputs.hardware.nixosModules.common-pc-laptop-ssd
|
||||
inputs.hardware.nixosModules.lenovo-thinkpad
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod"];
|
||||
kernelModules = [];
|
||||
};
|
||||
kernelModules = ["kvm-amd"];
|
||||
extraModulePackages = [];
|
||||
};
|
||||
}
|
3
hosts/headful/work/system.nix
Normal file
3
hosts/headful/work/system.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
system.stateVersion = "24.11";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue