Add host veil

This commit is contained in:
Johannes Rothe 2025-01-01 22:02:12 +01:00
parent ad7fc6614e
commit e00a929820
10 changed files with 116 additions and 28 deletions

View File

@ -36,6 +36,12 @@
./hosts/lift ./hosts/lift
]; ];
}; };
veil = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/veil
];
};
tien = nixpkgs.lib.nixosSystem { tien = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
@ -58,14 +64,16 @@
inherit ghostty; inherit ghostty;
}; };
}; };
"rothe@johannes-powermachine" = home-manager.lib.homeManagerConfiguration { "rothe@veil" = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
modules = [ modules = [
./home/terminal ./home/terminal
./home/wayland
nixvim.homeManagerModules.nixvim nixvim.homeManagerModules.nixvim
]; ];
extraSpecialArgs = { extraSpecialArgs = {
mail = nixpkgs.lib.strings.concatStrings ["mail" "@" "johannes-rothe.de"]; mail = nixpkgs.lib.strings.concatStrings ["mail" "@" "johannes-rothe.de"];
inherit ghostty;
}; };
}; };
"rothe@pdemu1cml000301" = home-manager.lib.homeManagerConfiguration { "rothe@pdemu1cml000301" = home-manager.lib.homeManagerConfiguration {

View File

@ -26,27 +26,6 @@
# bluetooth # bluetooth
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
security.rtkit.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.rothe = {
isNormalUser = true;
description = "rothe";
extraGroups = [ "networkmanager" "wheel" "video" "scanner" "lp" "incus-admin" "dialout" ];
shell = pkgs.fish;
packages = with pkgs; [
chromium
firefox
logseq
thunderbird
];
};
nixpkgs.config.permittedInsecurePackages = [
"electron-27.3.11"
];
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
avrdude avrdude
cryptsetup cryptsetup
@ -67,9 +46,7 @@
services.passSecretService.enable = true; services.passSecretService.enable = true;
services.gvfs.enable = true; services.gvfs.enable = true;
services.blueman.enable = true; services.blueman.enable = true;
services.fwupd.enable = true;
networking.nftables = { networking.nftables = {
enable = true; enable = true;

View File

@ -4,6 +4,7 @@
./configuration.nix ./configuration.nix
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/terminal/base.nix ../../modules/terminal/base.nix
../../modules/terminal/user.nix
../../modules/graphical/base.nix ../../modules/graphical/base.nix
../../modules/graphical/printing.nix ../../modules/graphical/printing.nix
../../modules/graphical/steam.nix ../../modules/graphical/steam.nix

View File

@ -0,0 +1,19 @@
{ ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "veil";
networking.networkmanager.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.11"; # Did you read the comment?
}

13
hosts/veil/default.nix Normal file
View File

@ -0,0 +1,13 @@
{...}:
{
imports = [
./configuration.nix
./hardware-configuration.nix
../../modules/terminal/base.nix
../../modules/terminal/user.nix
../../modules/graphical/amdgpu.nix
../../modules/graphical/base.nix
../../modules/graphical/printing.nix
../../modules/graphical/steam.nix
];
}

View File

@ -0,0 +1,41 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/efaa7991-10ec-4c9b-b8e1-f8494f1786f9";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5DB3-F970";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/4dbfb986-1e81-4fcb-abea-21dd933cf581"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp7s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp6s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@ -0,0 +1,6 @@
{...}:
{
boot.initrd.kernelModules = [ "amdgpu" ];
# for Southern Islands (SI i.e. GCN 1) cards
boot.kernelParams = [ "radeon.si_support=0" "amdgpu.si_support=1" ];
}

View File

@ -5,21 +5,25 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
calibre calibre
chromium
dracula-theme dracula-theme
evince
gimp
eog eog
nautilus evince
simple-scan firefox
gimp
inkscape inkscape
libreoffice libreoffice
logseq
nautilus
pavucontrol pavucontrol
portfolio portfolio
prusa-slicer prusa-slicer
pulseaudio pulseaudio
signal-desktop signal-desktop
simple-scan
spotify spotify
syncthing syncthing
thunderbird
vlc vlc
wayshot wayshot
wdisplays wdisplays
@ -28,11 +32,18 @@
yt-dlp yt-dlp
]; ];
# Workaround for logseq
nixpkgs.config.permittedInsecurePackages = [
"electron-27.3.11"
];
programs = { programs = {
light.enable = true; light.enable = true;
sway.enable = true; sway.enable = true;
}; };
security.rtkit.enable = true;
services = { services = {
dbus.enable = true; dbus.enable = true;
greetd = { greetd = {

View File

@ -19,6 +19,7 @@
}; };
console.keyMap = "de-latin1-nodeadkeys"; console.keyMap = "de-latin1-nodeadkeys";
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
bind bind
@ -45,6 +46,7 @@
}; };
services = { services = {
fwupd.enable = true;
resolved.enable = true; resolved.enable = true;
tailscale.enable = true; tailscale.enable = true;
}; };

10
modules/terminal/user.nix Normal file
View File

@ -0,0 +1,10 @@
{pkgs, ...}:
{
users.users.rothe = {
isNormalUser = true;
description = "rothe";
extraGroups = [ "networkmanager" "wheel" "video" "scanner" "lp" "incus-admin" "dialout" ];
shell = pkgs.fish;
};
}