Compare commits
14 Commits
a4f56f922f
...
7410e0e0a2
| Author | SHA1 | Date | |
|---|---|---|---|
| 7410e0e0a2 | |||
| 22a1b19301 | |||
| 0167bb1ab5 | |||
| 905aace59e | |||
| 2337629578 | |||
| a55644e77c | |||
| b5ee65626a | |||
| d3531dfd9e | |||
| 820e4b1cce | |||
| dd0ddd7834 | |||
| b23ebe640d | |||
| ef35e06dfd | |||
| bac5ee7534 | |||
| e4f1e92d2a |
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;
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
, UID
|
||||
, GID
|
||||
,
|
||||
}: {
|
||||
}: { pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
cifs-utils
|
||||
];
|
||||
fileSystems."${destination}" = {
|
||||
device = "//${host}/${resource}";
|
||||
fsType = "cifs";
|
||||
|
||||
8
modules/factory/wpaperd.nix
Normal file
8
modules/factory/wpaperd.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
config.flake.factory.wpaperd = config: {
|
||||
services.wpaperd = {
|
||||
enable = true;
|
||||
settings = config;
|
||||
};
|
||||
};
|
||||
}
|
||||
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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
48
modules/programs/ashell.nix
Normal file
48
modules/programs/ashell.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
flake.modules.homeManager.ashell =
|
||||
{ config
|
||||
, lib
|
||||
, ...
|
||||
}: {
|
||||
programs.ashell = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
|
||||
settings = {
|
||||
modules = {
|
||||
left = [ "Workspaces" ];
|
||||
center = [ "Clock" ];
|
||||
right = [ "Tray" [ "SystemInfo" "Settings" ] ];
|
||||
};
|
||||
|
||||
system_info.indicators = [ "Cpu" "Memory" "Temperature" "DownloadSpeed" "UploadSpeed" ];
|
||||
|
||||
settings.indicators = [ "Battery" ];
|
||||
|
||||
appearance = lib.mkIf config.catppuccin.enable {
|
||||
success_color = "#a6e3a1";
|
||||
text_color = "#cdd6f4";
|
||||
workspace_colors = [ "#fab387" "#b4befe" "#cba6f7" ];
|
||||
|
||||
primary_color = {
|
||||
base = "#fab387";
|
||||
text = "#1e1e2e";
|
||||
};
|
||||
danger_color = {
|
||||
base = "#f38ba8";
|
||||
weak = "#f9e2af";
|
||||
};
|
||||
background_color = {
|
||||
base = "#1e1e2e";
|
||||
weak = "#313244";
|
||||
strong = "#45475a";
|
||||
};
|
||||
secondary_color = {
|
||||
base = "#11111b";
|
||||
strong = "#1b1b25";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,12 @@
|
||||
{
|
||||
flake.modules.homeManager.btop = { pkgs, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
btop
|
||||
];
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
settings = {
|
||||
vim_keys = true;
|
||||
proc_tree = true;
|
||||
proc_aggregate = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -10,5 +10,12 @@
|
||||
clang
|
||||
gcc
|
||||
];
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
silent = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
13
modules/programs/obsidian.nix
Normal file
13
modules/programs/obsidian.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
flake.modules.homeManager.obsidian = {
|
||||
programs.obsidian = {
|
||||
enable = true;
|
||||
defaultSettings = {
|
||||
communityPlugins = [
|
||||
"excalidraw"
|
||||
];
|
||||
themes = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
8
modules/services/backlight.nix
Normal file
8
modules/services/backlight.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
flake.modules.nixos.backlight = {
|
||||
programs.light = {
|
||||
enable = true;
|
||||
brightnessKeys.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,19 +1,23 @@
|
||||
{
|
||||
flake.modules.homeManager.borgmatic =
|
||||
{ config
|
||||
, osConfig
|
||||
, pkgs
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
hostname = config.networking.hostname;
|
||||
hostname = osConfig.networking.hostName;
|
||||
username = config.home.username;
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
libnotify
|
||||
borgmatic
|
||||
];
|
||||
|
||||
programs.borgmatic = {
|
||||
enable = true;
|
||||
backups.default = {
|
||||
location = {
|
||||
repositories = [
|
||||
@@ -25,6 +29,7 @@
|
||||
excludeHomeManagerSymlinks = true;
|
||||
patterns = [
|
||||
#TODO: home.homeDirectory might be usable here
|
||||
#TODO: should be user and machine specific
|
||||
"R /home/${username}/Documents"
|
||||
"R /home/${username}/.ssh"
|
||||
"- /home/${username}/Documents/SteamLibrary"
|
||||
@@ -50,6 +55,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
#TODO: there is a services.borgmatic
|
||||
|
||||
systemd.user.services.borgmatic = {
|
||||
Unit.Description = "Create a backup using borgmatic";
|
||||
Service.ExecStart = "${pkgs.borgmatic}/bin/borgmatic create --stats";
|
||||
|
||||
7
modules/services/networkmanager.nix
Normal file
7
modules/services/networkmanager.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
flake.modules.nixos.networkmanager = {
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
5
modules/services/nm-applet.nix
Normal file
5
modules/services/nm-applet.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
flake.modules.homeManager.nm-applet = {
|
||||
services.network-manager-applet.enable = true;
|
||||
};
|
||||
}
|
||||
7
modules/services/tailscale.nix
Normal file
7
modules/services/tailscale.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
flake.modules.nixos.tailscale = {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
5
modules/services/upower.nix
Normal file
5
modules/services/upower.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
flake.modules.nixos.upower = {
|
||||
services.upower.enable = true;
|
||||
};
|
||||
}
|
||||
15
modules/system-settings/intel-gpu.nix
Normal file
15
modules/system-settings/intel-gpu.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
flake.modules.nixos.intel-gpu = {pkgs, ...}: {
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
intel-media-driver
|
||||
intel-compute-runtime
|
||||
];
|
||||
};
|
||||
|
||||
environment.sessionVariables.LIBVA_DRIVER_NAME = "iHD";
|
||||
};
|
||||
}
|
||||
6
modules/system-settings/systemd-boot.nix
Normal file
6
modules/system-settings/systemd-boot.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
flake.modules.nixos.systemd-boot = {
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user