Added nixos configs

This commit is contained in:
2026-02-22 19:25:39 +01:00
parent c0f19a200d
commit 8694deed28
9013 changed files with 118058 additions and 0 deletions
@@ -0,0 +1,44 @@
{ user, ... } : {
imports =
[
./hardware-configuration.nix
../../configuration
];
# sops.secrets."ssh/traveldroid/private" = { # ssh private key
# owner = "${user.username}";
# mode = "600";
# path = "/home/${user.username}/.ssh/id_ed25519";
# };
# sops.secrets."ssh/traveldroid/public" = { # ssh public key
# owner = "${user.username}";
# mode = "644";
# path = "/home/${user.username}/.ssh/id_ed25519.pub";
# };
# sops.secrets."ssh/wavefunk/private" = { # ssh private key
# owner = "${user.username}";
# mode = "600";
# path = "/home/${user.username}/.ssh/wavefunk";
# };
# sops.secrets."ssh/wavefunk/public" = { # ssh public key
# owner = "${user.username}";
# mode = "644";
# path = "/home/${user.username}/.ssh/wavefunk.pub";
# };
# sops.secrets."ssh/wavefunk_dev/private" = { # ssh private key
# owner = "${user.username}";
# mode = "600";
# path = "/home/${user.username}/.ssh/wavefunk_dev";
# };
# sops.secrets."ssh/wavefunk_dev/public" = { # ssh public key
# owner = "${user.username}";
# mode = "644";
# path = "/home/${user.username}/.ssh/wavefunk_dev.pub";
# };
programs._1password.enable = true;
programs._1password-gui = {
enable = true;
polkitPolicyOwners = [ "${user.username}" ];
};
}
@@ -0,0 +1,38 @@
{
hostname,
pkgs,
lib,
modulesPath,
user,
config,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
../../hardware/hardware.nix
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/69433a14-fbaf-401b-af85-cd1bbf02b4e2";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/811D-0676";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/b6c557c2-7682-460b-a5e7-8f6f2f429a3a"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
@@ -0,0 +1,25 @@
{ pkgs, ... } : {
imports = [
../../home
];
home.packages = with pkgs; [
brightnessctl
];
wayland.windowManager.hyprland.settings = {
bind = [
"XF86MonBrightnessUp, exec, brightnessctl set 5%+"
"XF86MonBrightnessDown, exec, brightnessctl set 5%-"
"XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
"XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
"XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
"XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
];
bindl = [
'', switch:on:Lid Switch, exec, hyprctl keyword monitor "eDP-1, disable"''
'', switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, preferred, 0x0, 1"''
];
};
}