hosts/tux: Add preliminary configuration for tux
Welcome to the team <3
This commit is contained in:
17
flake.lock
generated
17
flake.lock
generated
@@ -25,6 +25,22 @@
|
||||
"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": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
@@ -313,6 +329,7 @@
|
||||
"root": {
|
||||
"inputs": {
|
||||
"agenix": "agenix",
|
||||
"aghpb": "aghpb",
|
||||
"assets": "assets",
|
||||
"catppuccin": "catppuccin",
|
||||
"flake-file": "flake-file",
|
||||
|
||||
@@ -11,6 +11,10 @@
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
aghpb = {
|
||||
url = "github:cat-milk/Anime-Girls-Holding-Programming-Books";
|
||||
flake = false;
|
||||
};
|
||||
assets = {
|
||||
url = "path:./assets";
|
||||
flake = false;
|
||||
|
||||
20
modules/hosts/tux/filesystems.nix
Normal file
20
modules/hosts/tux/filesystems.nix
Normal 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"; }
|
||||
];
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
3
modules/hosts/tux/flake-parts.nix
Normal file
3
modules/hosts/tux/flake-parts.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{ inputs, ...}: {
|
||||
flake.nixosConfigurations = inputs.self.lib.mkNixos "x86_64-linux" "tux";
|
||||
}
|
||||
15
modules/hosts/tux/hardware.nix
Normal file
15
modules/hosts/tux/hardware.nix
Normal 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;
|
||||
|
||||
};
|
||||
}
|
||||
8
modules/hosts/tux/networking.nix
Normal file
8
modules/hosts/tux/networking.nix
Normal 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
17
modules/hosts/tux/tux.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
8
modules/hosts/tux/users/weckyy702/backlight.nix
Normal file
8
modules/hosts/tux/users/weckyy702/backlight.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ inputs, ... }: {
|
||||
flake.modules.nixos.tux = {
|
||||
imports = with inputs.self.modules.nixos; [
|
||||
backlight
|
||||
];
|
||||
users.users.weckyy702.extraGroups = [ "video" ];
|
||||
};
|
||||
}
|
||||
19
modules/hosts/tux/users/weckyy702/hyprland.nix
Normal file
19
modules/hosts/tux/users/weckyy702/hyprland.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
16
modules/hosts/tux/users/weckyy702/mount-nas.nix
Normal file
16
modules/hosts/tux/users/weckyy702/mount-nas.nix
Normal 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";
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
14
modules/hosts/tux/users/weckyy702/wallpaper.nix
Normal file
14
modules/hosts/tux/users/weckyy702/wallpaper.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
20
modules/hosts/tux/users/weckyy702/weckyy702.nix
Normal file
20
modules/hosts/tux/users/weckyy702/weckyy702.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user