Compare commits

..
3 Commits
Author SHA1 Message Date
Weckyy702 149877f31e Keith: Add NAPS2 for scanning 2026-08-03 21:38:28 +02:00
Weckyy702 b0a83e2ad5 Misc: Add nixfmt-tree and run nix fmt 2026-07-30 15:03:14 +02:00
Weckyy702 3831cc1540 Nixvim/lsp: Enable tinymist and typst 2026-07-30 15:01:27 +02:00
31 changed files with 215 additions and 132 deletions
+9 -8
View File
@@ -1,13 +1,14 @@
{
config.flake.factory.mount-cifs =
{ host
, resource
, destination
, credentials_path
, UID
, GID
,
}: { pkgs, ... }: {
{
host,
resource,
destination,
credentials_path,
UID,
GID,
}:
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
cifs-utils
];
+6 -4
View File
@@ -1,10 +1,12 @@
{ self, ... }: {
config.flake.factory.user = username: isAdmin: {
nixos."${username}" =
{ lib
, pkgs
, ...
}: {
{
lib,
pkgs,
...
}:
{
users.users."${username}" = {
isNormalUser = true;
home = "/home/${username}";
+5
View File
@@ -0,0 +1,5 @@
{
perSystem = { pkgs, ... }: {
formatter = pkgs.nixfmt-tree;
};
}
+4 -2
View File
@@ -1,7 +1,9 @@
{ inputs, ... }: {
flake.modules.nixos.keith = {
imports = with inputs.self.modules.nixos;
with inputs.self.factory; [
imports =
with inputs.self.modules.nixos;
with inputs.self.factory;
[
system-desktop
(autologin "weckyy702")
(grub-boot "/dev/nvme0n1")
+4 -2
View File
@@ -1,7 +1,9 @@
{ inputs, ... }: {
flake.modules.nixos.keith-devtools = {
imports = with inputs.self.modules.nixos;
with inputs.self.factory; [
imports =
with inputs.self.modules.nixos;
with inputs.self.factory;
[
development-tools
rust-dev
];
+8 -1
View File
@@ -5,7 +5,14 @@
amd-gpu
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
nixpkgs.hostPlatform = "x86_64-linux";
hardware.cpu.amd.updateMicrocode = true;
+6 -4
View File
@@ -1,7 +1,9 @@
{ self
, inputs
, ...
}: {
{
self,
inputs,
...
}:
{
flake.modules.nixos.keith = { config, ... }: {
age.secrets.upsmon.file = "${inputs.secrets}/upsmon.age";
@@ -4,11 +4,14 @@
weckyy702
steam
mullvad
naps2
];
home-manager.users.weckyy702 = { config, ... }: {
imports = with inputs.self.modules.homeManager;
with inputs.self.factory; [
imports =
with inputs.self.modules.homeManager;
with inputs.self.factory;
[
(wpaperd {
default = {
path = "${inputs.assets}/horizontal_16x9.png";
+4 -2
View File
@@ -1,7 +1,9 @@
{ inputs, ... }: {
flake.modules.nixos.tux-devtools = {
imports = with inputs.self.modules.nixos;
with inputs.self.factory; [
imports =
with inputs.self.modules.nixos;
with inputs.self.factory;
[
development-tools
rust-dev
+4 -1
View File
@@ -8,7 +8,10 @@
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/15FA-55CF";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
+1 -1
View File
@@ -1,3 +1,3 @@
{ inputs, ...}: {
{ inputs, ... }: {
flake.nixosConfigurations = inputs.self.lib.mkNixos "x86_64-linux" "tux";
}
+11 -3
View File
@@ -4,9 +4,17 @@
intel-gpu
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.luks.devices."luks-9d836ef1-a7f9-430f-8fb8-f202f6336e5a".device = "/dev/disk/by-uuid/9d836ef1-a7f9-430f-8fb8-f202f6336e5a";
boot.initrd.luks.devices."luks-46e78828-ab23-48b8-8e2a-de7a21adbe24".device = "/dev/disk/by-uuid/46e78828-ab23-48b8-8e2a-de7a21adbe24";
boot.initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"usb_storage"
"sd_mod"
"sdhci_pci"
];
boot.initrd.luks.devices."luks-9d836ef1-a7f9-430f-8fb8-f202f6336e5a".device =
"/dev/disk/by-uuid/9d836ef1-a7f9-430f-8fb8-f202f6336e5a";
boot.initrd.luks.devices."luks-46e78828-ab23-48b8-8e2a-de7a21adbe24".device =
"/dev/disk/by-uuid/46e78828-ab23-48b8-8e2a-de7a21adbe24";
nixpkgs.hostPlatform = "x86_64-linux";
+4 -2
View File
@@ -1,7 +1,9 @@
{ inputs, ... }: {
flake.modules.nixos.tux = {
imports = with inputs.self.modules.nixos;
with inputs.self.factory; [
imports =
with inputs.self.modules.nixos;
with inputs.self.factory;
[
system-desktop
systemd-boot
bluetooth
@@ -7,8 +7,10 @@
];
home-manager.users.weckyy702 = {
imports = with inputs.self.modules.homeManager;
with inputs.self.factory; [
imports =
with inputs.self.modules.homeManager;
with inputs.self.factory;
[
borgmatic
obsidian
vesktop
+6 -4
View File
@@ -1,7 +1,9 @@
{ inputs
, lib
, ...
}: {
{
inputs,
lib,
...
}:
{
# Helper functions for creating system / home-manager configurations
options.flake.lib = lib.mkOption {
+6 -4
View File
@@ -1,7 +1,9 @@
{ inputs
, config
, ...
}: {
{
inputs,
config,
...
}:
{
# Add home-manager input
flake-file.inputs = {
home-manager.url = "github:nix-community/home-manager/release-26.05";
+1 -1
View File
@@ -1,5 +1,5 @@
{
flake.modules.nixos.appimage = { pkgs, ...}: {
flake.modules.nixos.appimage = { pkgs, ... }: {
programs.appimage = {
enable = true;
binfmt = true;
+25 -7
View File
@@ -1,9 +1,11 @@
{
flake.modules.homeManager.ashell =
{ config
, lib
, ...
}: {
{
config,
lib,
...
}:
{
programs.ashell = {
enable = true;
systemd.enable = true;
@@ -12,17 +14,33 @@
modules = {
left = [ "Workspaces" ];
center = [ "Clock" ];
right = [ "Tray" [ "SystemInfo" "Settings" ] ];
right = [
"Tray"
[
"SystemInfo"
"Settings"
]
];
};
system_info.indicators = [ "Cpu" "Memory" "Temperature" "DownloadSpeed" "UploadSpeed" ];
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" ];
workspace_colors = [
"#fab387"
"#b4befe"
"#cba6f7"
];
primary_color = {
base = "#fab387";
+10 -15
View File
@@ -7,9 +7,10 @@
};
flake.modules.homeManager.browser =
{ pkgs
, lib
, ...
{
pkgs,
lib,
...
}:
let
mkExtension = shortId: guid: {
@@ -19,8 +20,7 @@
installation_mode = "normal_installed";
};
};
zen-pkg =
inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.zen-browser-unwrapped;
zen-pkg = inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.zen-browser-unwrapped;
prefs = {
"zen.tabs.vertical.right-side" = true;
@@ -55,15 +55,11 @@
in
{
home.packages = [
(
pkgs.wrapFirefox zen-pkg
{
(pkgs.wrapFirefox zen-pkg {
extraPrefs = lib.concatLines (
lib.mapAttrsToList
(
name: value: ''lockPref(${lib.strings.toJSON name}, ${lib.strings.toJSON value});''
)
prefs
lib.mapAttrsToList (
name: value: "lockPref(${lib.strings.toJSON name}, ${lib.strings.toJSON value});"
) prefs
);
extraPolicies = {
@@ -82,8 +78,7 @@
];
};
};
}
)
})
];
};
}
+3 -3
View File
@@ -38,9 +38,9 @@
hyprcursor.size = size;
};
# wayland.windowManager.hyprland.settings.exec-once = [
# "hyprctl setcursor catppuccin-mocha-mauve-cursors 24"
# ];
# wayland.windowManager.hyprland.settings.exec-once = [
# "hyprctl setcursor catppuccin-mocha-mauve-cursors 24"
# ];
catppuccin.enable = true;
# Required for QT apps to use the catppuccin colors
+1 -4
View File
@@ -4,10 +4,7 @@
enable = true;
autoPrune.enable = true;
};
users.users =
lib.genAttrs
users
(_: {
users.users = lib.genAttrs users (_: {
extraGroups = [ "docker" ];
});
};
+2 -1
View File
@@ -10,7 +10,8 @@
};
};
flake.modules.homeManager.randomized-aghpb-wallpaper = { pkgs, ... }:
flake.modules.homeManager.randomized-aghpb-wallpaper =
{ pkgs, ... }:
let
combined_wallpapers = pkgs.symlinkJoin {
name = "joined-wallpapers";
+10
View File
@@ -0,0 +1,10 @@
{ self, ... }: {
flake.modules.nixos.naps2 = { pkgs, ... }: {
imports = with self.modules.nixos; [
sane
];
environment.systemPackages = with pkgs; [
naps2
];
};
}
@@ -23,6 +23,7 @@
basedpyright.enable = true;
emmet_ls.enable = true;
tinymist.enable = true;
};
keymaps = [
@@ -36,4 +37,7 @@
plugins.lspconfig.enable = true;
plugins.clangd-extensions.enable = true;
plugins.typst-vim = {
enable = true;
};
}
+2 -1
View File
@@ -1,5 +1,6 @@
{ inputs, ... }: {
flake.modules.homeManager.backlight = { pkgs, ... }:
flake.modules.homeManager.backlight =
{ pkgs, ... }:
let
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
in
+6 -5
View File
@@ -1,10 +1,11 @@
{
flake.modules.homeManager.borgmatic =
{ config
, osConfig
, pkgs
, lib
, ...
{
config,
osConfig,
pkgs,
lib,
...
}:
let
hostname = osConfig.networking.hostName;
+1 -1
View File
@@ -1,5 +1,5 @@
{
flake.modules.nixos.intel-gpu = {pkgs, ...}: {
flake.modules.nixos.intel-gpu = { pkgs, ... }: {
boot.kernelModules = [ "kvm-intel" ];
hardware.graphics = {
+16 -8
View File
@@ -1,22 +1,30 @@
{ inputs
, self
, lib
, ...
}: {
{
inputs,
self,
lib,
...
}:
{
flake.homeConfigurations = inputs.self.lib.mkHomeManager "x86_64-linux" "weckyy702";
flake.modules = lib.mkMerge [
(self.factory.user "weckyy702" true)
{
nixos.weckyy702 = {
imports = with self.modules.nixos;
with self.factory; [
imports =
with self.modules.nixos;
with self.factory;
[
kanata
catppuccin
(zsa-moonlander "weckyy702")
];
users.users.weckyy702.extraGroups = [ "networkmanager" "dialout" "scanner" ];
users.users.weckyy702.extraGroups = [
"networkmanager"
"dialout"
"scanner"
];
};
homeManager.weckyy702 = { pkgs, ... }: {
+4 -1
View File
@@ -4,7 +4,10 @@ let
keith = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrauXP79zUm2FlVj3HRm+C8ufYAABiIoe68OCGbIm+2";
tux = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFB7bh6ioZrTSR0AkKvJ1qxVWX0kwcM8yeHghTYFGpqZ";
systems = [ keith tux ];
systems = [
keith
tux
];
in
{
"nas-creds.age" = {