hosts/tux: Add preliminary configuration for tux

Welcome to the team <3
This commit is contained in:
2026-03-17 00:15:19 +01:00
parent 22a1b19301
commit 7410e0e0a2
12 changed files with 161 additions and 0 deletions

17
flake.lock generated
View File

@@ -25,6 +25,22 @@
"type": "github" "type": "github"
} }
}, },
"aghpb": {
"flake": false,
"locked": {
"lastModified": 1773167124,
"narHash": "sha256-ELnpKMODHKZcsXZ9/6XyTo17u3j2bUs9nplyULz6uFI=",
"owner": "cat-milk",
"repo": "Anime-Girls-Holding-Programming-Books",
"rev": "c04a6e18f474965b731b65e539ad69a94123c444",
"type": "github"
},
"original": {
"owner": "cat-milk",
"repo": "Anime-Girls-Holding-Programming-Books",
"type": "github"
}
},
"assets": { "assets": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -313,6 +329,7 @@
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"aghpb": "aghpb",
"assets": "assets", "assets": "assets",
"catppuccin": "catppuccin", "catppuccin": "catppuccin",
"flake-file": "flake-file", "flake-file": "flake-file",

View File

@@ -11,6 +11,10 @@
nixpkgs.follows = "nixpkgs"; nixpkgs.follows = "nixpkgs";
}; };
}; };
aghpb = {
url = "github:cat-milk/Anime-Girls-Holding-Programming-Books";
flake = false;
};
assets = { assets = {
url = "path:./assets"; url = "path:./assets";
flake = false; flake = false;

View File

@@ -0,0 +1,20 @@
{
flake.modules.nixos.tux = {
fileSystems."/" =
{ device = "/dev/disk/by-uuid/39bb2139-7d71-4f3d-9c11-2cf3fe26ad7d";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/6514-61C0";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/ac1606de-34d3-4036-baf6-2ed17e54bfc3"; }
];
};
}

View File

@@ -0,0 +1,3 @@
{ inputs, ...}: {
flake.nixosConfigurations = inputs.self.lib.mkNixos "x86_64-linux" "tux";
}

View File

@@ -0,0 +1,15 @@
{inputs, ...}: {
flake.modules.nixos.tux = {
imports = with inputs.self.modules.nixos; [
intel-gpu
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
nixpkgs.hostPlatform = "x86_64-linux";
hardware.enableRedistributableFirmware = true;
hardware.cpu.intel.updateMicrocode = true;
};
}

View File

@@ -0,0 +1,8 @@
{inputs, ...}: {
flake.modules.nixos.tux = {
imports = with inputs.self.modules.nixos; [
networkmanager
];
networking.hostName = "tux";
};
}

17
modules/hosts/tux/tux.nix Normal file
View File

@@ -0,0 +1,17 @@
{ inputs, ... }: {
flake.modules.nixos.tux = {
imports = with inputs.self.modules.nixos;
with inputs.self.factory; [
system-desktop
systemd-boot
(autologin "weckyy702")
development-tools
i18n-de
tailscale
#TODO: laptop specific aspects like powertop
];
};
}

View File

@@ -0,0 +1,8 @@
{ inputs, ... }: {
flake.modules.nixos.tux = {
imports = with inputs.self.modules.nixos; [
backlight
];
users.users.weckyy702.extraGroups = [ "video" ];
};
}

View File

@@ -0,0 +1,19 @@
{ inputs, ... }: {
flake-file.inputs = {
aghpb = {
url = "github:cat-milk/Anime-Girls-Holding-Programming-Books";
flake = false;
};
};
flake.modules.homeManager.tux-hyprland = {
imports = with inputs.self.modules.homeManager; [
ashell
];
wayland.windowManager.hyprland.settings = {
monitor = [
"eDP-1,preferred,0x0,1.066666667"
];
};
};
}

View File

@@ -0,0 +1,16 @@
{ inputs, ... }: {
flake.modules.nixos.tux = { config, ... }: {
age.secrets."nas-creds".file = "${inputs.secrets}/nas-creds.age";
imports = with inputs.self.factory; [
(mount-cifs {
host = "duke.veltnet";
resource = "smb-share";
destination = "/home/weckyy702/duke";
credentials_path = "${config.age.secrets.nas-creds.path}";
UID = "weckyy702";
GID = "users";
})
];
};
}

View File

@@ -0,0 +1,14 @@
{ inputs, ... }: {
flake.modules.homeManager.randomized-aghpb-wallpaper = {
imports = with inputs.self.factory; [
(wpaperd {
default = {
path = inputs.aghpb;
recursive = true;
mode = "stretch";
duration = "5m";
};
})
];
};
}

View File

@@ -0,0 +1,20 @@
{ inputs, ... }: {
flake.modules.nixos.tux = {
imports = with inputs.self.modules.nixos; [
weckyy702
upower
];
home-manager.users.weckyy702 = {
imports = with inputs.self.modules.homeManager;
with inputs.self.factory; [
borgmatic
obsidian
vesktop
tux-hyprland
randomized-aghpb-wallpaper
nm-applet
];
};
};
}