Compare commits
15 Commits
84a92a304a
...
north
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dffd47fa94 | ||
|
|
70b3d92fb1 | ||
|
|
93bcb23085 | ||
|
|
bb60da2409 | ||
|
|
6b33a71dd3 | ||
|
|
63e68509e3 | ||
|
|
152a42db08 | ||
|
|
71fba2ade8 | ||
|
|
4ad5da9956 | ||
|
|
2fc38d5ee7 | ||
|
|
03d3741aed | ||
|
|
813a3fd019 | ||
|
|
c9f988e4e4 | ||
|
|
ec0325a8b0 | ||
|
|
3205ca267b |
@@ -1,4 +1,4 @@
|
||||
{ pkgs, pkgs-unstable, inputs, ... }:
|
||||
{ pkgs, pkgs-unstable, lib, inputs, allowed, nvidia, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
@@ -12,18 +12,19 @@
|
||||
./system-modules/gc.nix
|
||||
./system-modules/dm.nix
|
||||
./system-modules/networking.nix
|
||||
./system-modules/virtualisation.nix
|
||||
# ./system-modules/virtualisation.nix
|
||||
./system-modules/sshd.nix
|
||||
./system-modules/gpg.nix
|
||||
./system-modules/sops.nix
|
||||
./system-modules/syncthing.nix
|
||||
# ./system-modules/hsmw.nix # old
|
||||
./system-modules/hsmw.nix # old
|
||||
./system-modules/docker.nix
|
||||
./system-modules/health_reminder.nix
|
||||
./system-modules/ydotool.nix
|
||||
./system-modules/ollama.nix
|
||||
./system-modules/nx2site.nix
|
||||
./system-modules/kodi.nix
|
||||
./system-modules/qmk.nix
|
||||
];
|
||||
|
||||
|
||||
@@ -52,20 +53,27 @@
|
||||
security.rtkit.enable = true;
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
services.xserver.libinput.enable = true;
|
||||
services.libinput.enable = true;
|
||||
hardware.uinput.enable = true;
|
||||
|
||||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||||
hardware.bluetooth.powerOnBoot = true; #
|
||||
services.blueman.enable = true;
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
# nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) allowed.unfree-packages;
|
||||
|
||||
# nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.config = {
|
||||
# allowUnfree = true;
|
||||
# allowUnfreePredicate = (pkg: true);
|
||||
allowUnfreePredicate = let
|
||||
string-list = allowed.unfree-packages ++ (if nvidia.enable == true then nvidia.unfree else []);
|
||||
in pkg: builtins.elem (lib.getName pkg) string-list;
|
||||
cudaSupport = nvidia.enable;
|
||||
enableParallelBuildingByDefault = true;
|
||||
};
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
environment.systemPackages = with pkgs; ([
|
||||
git
|
||||
lazygit # home-manager module is bugged
|
||||
git-crypt
|
||||
@@ -83,8 +91,8 @@
|
||||
blueman
|
||||
dmidecode
|
||||
file
|
||||
] ++ (with pkgs-unstable; [
|
||||
sendme
|
||||
# ]) ++ (with pkgs-unstable; [
|
||||
# # sendme
|
||||
]);
|
||||
|
||||
environment.variables = {
|
||||
@@ -103,7 +111,6 @@
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
|
||||
programs.bash.shellInit = ''
|
||||
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
'';
|
||||
|
||||
55
flake.nix
@@ -28,10 +28,6 @@
|
||||
};
|
||||
hyprswitch.url = "github:h3rmt/hyprswitch/release";
|
||||
|
||||
# nixvim = {
|
||||
# url = "github:nix-community/nixvim/nixos-23.11";
|
||||
# inputs.nixpkgs.follows = "nixpkgs";
|
||||
# };
|
||||
lanzaboote = {
|
||||
url = "github:nix-community/lanzaboote/v0.3.0";
|
||||
# inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
@@ -50,8 +46,19 @@
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
||||
pkgs-config = {
|
||||
allowUnfree = true;
|
||||
# cudaSupport = nvidia.enable;
|
||||
# enableParallelBuildingByDefault = true;
|
||||
};
|
||||
pkgs = import nixpkgs {
|
||||
system = system;
|
||||
config = pkgs-config;
|
||||
};
|
||||
pkgs-unstable = import nixpkgs-unstable {
|
||||
system = system;
|
||||
config = pkgs-config;
|
||||
};
|
||||
|
||||
user = "nx2";
|
||||
|
||||
@@ -60,23 +67,43 @@
|
||||
prime = true;
|
||||
# unfree = if enable then [
|
||||
unfree = [
|
||||
"nvidia-x11"
|
||||
"nvidia-settings"
|
||||
"nvidia-persistenced"
|
||||
"cuda_cccl"
|
||||
"cuda_cudart"
|
||||
"cuda_cuobjdump"
|
||||
"cuda_cupti"
|
||||
"cuda_cuxxfilt"
|
||||
"cuda_gdb"
|
||||
"cuda-merged"
|
||||
"cuda_nvcc"
|
||||
"cuda_nvdisasm"
|
||||
"cuda_nvml_dev"
|
||||
"cuda_nvprune"
|
||||
"cuda_nvrtc"
|
||||
"cuda_nvtx"
|
||||
"cuda_profiler_api"
|
||||
"cuda_sanitizer_api"
|
||||
"cudatoolkit"
|
||||
"cudatoolkit-11.8.0"
|
||||
"cudatoolkit-12.2.2"
|
||||
"libcublas"
|
||||
"libcufft"
|
||||
"libcurand"
|
||||
"libcusolver"
|
||||
"libcusparse"
|
||||
"libnpp"
|
||||
"libnvjitlink"
|
||||
"nviaia-x11"
|
||||
"nvidia-persistenced"
|
||||
"nvidia-settings"
|
||||
"nvidia-x11"
|
||||
];
|
||||
# ] else [];
|
||||
};
|
||||
allowed = {
|
||||
unfree-packages = [
|
||||
"spotify"
|
||||
"cudatoolkit-12.2.2"
|
||||
"discord"
|
||||
"obsidian"
|
||||
"zoom-us"
|
||||
"spotify"
|
||||
"zoom"
|
||||
"zoom-us"
|
||||
] ++ nvidia.unfree;
|
||||
|
||||
inecure-packages = [
|
||||
|
||||
92
home-modules/assets/gtk-2.0/apps.rc
Normal file
@@ -0,0 +1,92 @@
|
||||
# vim:set ft=gtkrc ts=2 sw=2 sts=2 ai et:
|
||||
#
|
||||
# This file, unlike hacks.rc, contains legitimate cases we need to handle, e.g.
|
||||
# custom widgets, programs giving us a chance to alter their UI to fit more with
|
||||
# the theme or stuff that is supposed to look different, like panels.
|
||||
|
||||
# TODO: This could really look nicer
|
||||
style "gimp_spin_scale" {
|
||||
# Spin background
|
||||
bg[NORMAL] = @base_color
|
||||
|
||||
engine "pixmap" {
|
||||
image {
|
||||
function = BOX
|
||||
state = NORMAL
|
||||
detail = "spinbutton_up"
|
||||
overlay_file = "assets/pan-up-alt.png"
|
||||
overlay_stretch = FALSE
|
||||
}
|
||||
|
||||
image {
|
||||
function = BOX
|
||||
state = PRELIGHT
|
||||
detail = "spinbutton_up"
|
||||
overlay_file = "assets/pan-up.png"
|
||||
overlay_stretch = FALSE
|
||||
}
|
||||
|
||||
image {
|
||||
function = BOX
|
||||
state = ACTIVE
|
||||
detail = "spinbutton_up"
|
||||
overlay_file = "assets/pan-up.png"
|
||||
overlay_stretch = FALSE
|
||||
}
|
||||
|
||||
image {
|
||||
function = BOX
|
||||
state = INSENSITIVE
|
||||
detail = "spinbutton_up"
|
||||
overlay_file = "assets/pan-up-alt-disabled.png"
|
||||
overlay_stretch = FALSE
|
||||
}
|
||||
|
||||
image {
|
||||
function = BOX
|
||||
state = NORMAL
|
||||
detail = "spinbutton_down"
|
||||
overlay_file = "assets/pan-down-alt.png"
|
||||
overlay_stretch = FALSE
|
||||
}
|
||||
|
||||
image {
|
||||
function = BOX
|
||||
state = PRELIGHT
|
||||
detail = "spinbutton_down"
|
||||
overlay_file = "assets/pan-down.png"
|
||||
overlay_stretch = FALSE
|
||||
}
|
||||
|
||||
image {
|
||||
function = BOX
|
||||
state = ACTIVE
|
||||
detail = "spinbutton_down"
|
||||
overlay_file = "assets/pan-down.png"
|
||||
overlay_stretch = FALSE
|
||||
}
|
||||
|
||||
image {
|
||||
function = BOX
|
||||
state = INSENSITIVE
|
||||
detail = "spinbutton_down"
|
||||
overlay_file = "assets/pan-down-alt-disabled.png"
|
||||
overlay_stretch = FALSE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
style "chrome_gtk_frame" {
|
||||
ChromeGtkFrame::frame-color = @titlebar_bg_color
|
||||
ChromeGtkFrame::inactive-frame-color = @titlebar_bg_color
|
||||
ChromeGtkFrame::incognito-frame-color = @titlebar_bg_color
|
||||
ChromeGtkFrame::incognito-inactive-frame-color = @titlebar_bg_color
|
||||
|
||||
ChromeGtkFrame::frame-gradient-size = 0
|
||||
}
|
||||
|
||||
# Disable spin button assets for GimpSpinScale
|
||||
class "GimpSpinScale" style "gimp_spin_scale"
|
||||
|
||||
# Chromium lets us define some colours and settings for better integration
|
||||
class "ChromeGtkFrame" style "chrome_gtk_frame"
|
||||
BIN
home-modules/assets/gtk-2.0/assets/border.png
Normal file
|
After Width: | Height: | Size: 126 B |
BIN
home-modules/assets/gtk-2.0/assets/button-active.png
Normal file
|
After Width: | Height: | Size: 267 B |
BIN
home-modules/assets/gtk-2.0/assets/button-disabled.png
Normal file
|
After Width: | Height: | Size: 229 B |
BIN
home-modules/assets/gtk-2.0/assets/button-hover.png
Normal file
|
After Width: | Height: | Size: 252 B |
BIN
home-modules/assets/gtk-2.0/assets/button.png
Normal file
|
After Width: | Height: | Size: 239 B |
BIN
home-modules/assets/gtk-2.0/assets/checkbox-checked-active.png
Normal file
|
After Width: | Height: | Size: 522 B |
BIN
home-modules/assets/gtk-2.0/assets/checkbox-checked-disabled.png
Normal file
|
After Width: | Height: | Size: 495 B |
BIN
home-modules/assets/gtk-2.0/assets/checkbox-checked-hover.png
Normal file
|
After Width: | Height: | Size: 522 B |
BIN
home-modules/assets/gtk-2.0/assets/checkbox-checked.png
Normal file
|
After Width: | Height: | Size: 512 B |
BIN
home-modules/assets/gtk-2.0/assets/checkbox-mixed-active.png
Normal file
|
After Width: | Height: | Size: 445 B |
BIN
home-modules/assets/gtk-2.0/assets/checkbox-mixed-disabled.png
Normal file
|
After Width: | Height: | Size: 407 B |
BIN
home-modules/assets/gtk-2.0/assets/checkbox-mixed-hover.png
Normal file
|
After Width: | Height: | Size: 445 B |
BIN
home-modules/assets/gtk-2.0/assets/checkbox-mixed.png
Normal file
|
After Width: | Height: | Size: 439 B |
BIN
home-modules/assets/gtk-2.0/assets/checkbox-unchecked-active.png
Normal file
|
After Width: | Height: | Size: 298 B |
|
After Width: | Height: | Size: 267 B |
BIN
home-modules/assets/gtk-2.0/assets/checkbox-unchecked-hover.png
Normal file
|
After Width: | Height: | Size: 291 B |
BIN
home-modules/assets/gtk-2.0/assets/checkbox-unchecked.png
Normal file
|
After Width: | Height: | Size: 292 B |
BIN
home-modules/assets/gtk-2.0/assets/combo-left-entry-active.png
Normal file
|
After Width: | Height: | Size: 322 B |
BIN
home-modules/assets/gtk-2.0/assets/combo-left-entry-disabled.png
Normal file
|
After Width: | Height: | Size: 209 B |
BIN
home-modules/assets/gtk-2.0/assets/combo-left-entry-hover.png
Normal file
|
After Width: | Height: | Size: 282 B |
BIN
home-modules/assets/gtk-2.0/assets/combo-left-entry.png
Normal file
|
After Width: | Height: | Size: 216 B |
BIN
home-modules/assets/gtk-2.0/assets/combo-right-entry-active.png
Normal file
|
After Width: | Height: | Size: 333 B |
|
After Width: | Height: | Size: 207 B |
BIN
home-modules/assets/gtk-2.0/assets/combo-right-entry-hover.png
Normal file
|
After Width: | Height: | Size: 292 B |
BIN
home-modules/assets/gtk-2.0/assets/combo-right-entry.png
Normal file
|
After Width: | Height: | Size: 217 B |
BIN
home-modules/assets/gtk-2.0/assets/entry-active.png
Normal file
|
After Width: | Height: | Size: 416 B |
BIN
home-modules/assets/gtk-2.0/assets/entry-background-disabled.png
Normal file
|
After Width: | Height: | Size: 136 B |
BIN
home-modules/assets/gtk-2.0/assets/entry-background.png
Normal file
|
After Width: | Height: | Size: 136 B |
BIN
home-modules/assets/gtk-2.0/assets/entry-disabled.png
Normal file
|
After Width: | Height: | Size: 229 B |
BIN
home-modules/assets/gtk-2.0/assets/entry-hover.png
Normal file
|
After Width: | Height: | Size: 347 B |
BIN
home-modules/assets/gtk-2.0/assets/entry.png
Normal file
|
After Width: | Height: | Size: 239 B |
BIN
home-modules/assets/gtk-2.0/assets/flat-button-active.png
Normal file
|
After Width: | Height: | Size: 267 B |
BIN
home-modules/assets/gtk-2.0/assets/flat-button-disabled.png
Normal file
|
After Width: | Height: | Size: 195 B |
BIN
home-modules/assets/gtk-2.0/assets/flat-button-hover.png
Normal file
|
After Width: | Height: | Size: 252 B |
BIN
home-modules/assets/gtk-2.0/assets/flat-button.png
Normal file
|
After Width: | Height: | Size: 195 B |
BIN
home-modules/assets/gtk-2.0/assets/focus.png
Normal file
|
After Width: | Height: | Size: 221 B |
BIN
home-modules/assets/gtk-2.0/assets/frame-inline.png
Normal file
|
After Width: | Height: | Size: 143 B |
BIN
home-modules/assets/gtk-2.0/assets/frame-notebook.png
Normal file
|
After Width: | Height: | Size: 147 B |
BIN
home-modules/assets/gtk-2.0/assets/frame.png
Normal file
|
After Width: | Height: | Size: 147 B |
BIN
home-modules/assets/gtk-2.0/assets/handle-horz-active.png
Normal file
|
After Width: | Height: | Size: 170 B |
BIN
home-modules/assets/gtk-2.0/assets/handle-horz-hover.png
Normal file
|
After Width: | Height: | Size: 183 B |
BIN
home-modules/assets/gtk-2.0/assets/handle-horz.png
Normal file
|
After Width: | Height: | Size: 178 B |
BIN
home-modules/assets/gtk-2.0/assets/handle-vert-active.png
Normal file
|
After Width: | Height: | Size: 166 B |
BIN
home-modules/assets/gtk-2.0/assets/handle-vert-hover.png
Normal file
|
After Width: | Height: | Size: 173 B |
BIN
home-modules/assets/gtk-2.0/assets/handle-vert.png
Normal file
|
After Width: | Height: | Size: 172 B |
|
After Width: | Height: | Size: 432 B |
BIN
home-modules/assets/gtk-2.0/assets/menu-checkbox-checked.png
Normal file
|
After Width: | Height: | Size: 461 B |
|
After Width: | Height: | Size: 338 B |
BIN
home-modules/assets/gtk-2.0/assets/menu-checkbox-mixed.png
Normal file
|
After Width: | Height: | Size: 363 B |
|
After Width: | Height: | Size: 232 B |
BIN
home-modules/assets/gtk-2.0/assets/menu-checkbox-unchecked.png
Normal file
|
After Width: | Height: | Size: 255 B |
|
After Width: | Height: | Size: 365 B |
BIN
home-modules/assets/gtk-2.0/assets/menu-radio-checked.png
Normal file
|
After Width: | Height: | Size: 398 B |
BIN
home-modules/assets/gtk-2.0/assets/menu-radio-mixed-disabled.png
Normal file
|
After Width: | Height: | Size: 338 B |
BIN
home-modules/assets/gtk-2.0/assets/menu-radio-mixed.png
Normal file
|
After Width: | Height: | Size: 363 B |
|
After Width: | Height: | Size: 232 B |
BIN
home-modules/assets/gtk-2.0/assets/menu-radio-unchecked.png
Normal file
|
After Width: | Height: | Size: 255 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-down-alt-disabled.png
Normal file
|
After Width: | Height: | Size: 182 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-down-alt.png
Normal file
|
After Width: | Height: | Size: 190 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-down-disabled.png
Normal file
|
After Width: | Height: | Size: 181 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-down.png
Normal file
|
After Width: | Height: | Size: 165 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-left-alt-disabled.png
Normal file
|
After Width: | Height: | Size: 185 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-left-alt.png
Normal file
|
After Width: | Height: | Size: 194 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-left-disabled.png
Normal file
|
After Width: | Height: | Size: 185 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-left-semi.png
Normal file
|
After Width: | Height: | Size: 190 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-left.png
Normal file
|
After Width: | Height: | Size: 180 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-right-alt-disabled.png
Normal file
|
After Width: | Height: | Size: 187 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-right-alt.png
Normal file
|
After Width: | Height: | Size: 189 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-right-disabled.png
Normal file
|
After Width: | Height: | Size: 187 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-right-semi.png
Normal file
|
After Width: | Height: | Size: 192 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-right.png
Normal file
|
After Width: | Height: | Size: 181 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-up-alt-disabled.png
Normal file
|
After Width: | Height: | Size: 182 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-up-alt.png
Normal file
|
After Width: | Height: | Size: 182 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-up-disabled.png
Normal file
|
After Width: | Height: | Size: 182 B |
BIN
home-modules/assets/gtk-2.0/assets/pan-up.png
Normal file
|
After Width: | Height: | Size: 161 B |
BIN
home-modules/assets/gtk-2.0/assets/progressbar-progress.png
Normal file
|
After Width: | Height: | Size: 136 B |
BIN
home-modules/assets/gtk-2.0/assets/progressbar-trough.png
Normal file
|
After Width: | Height: | Size: 136 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-checked-active.png
Normal file
|
After Width: | Height: | Size: 478 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-checked-disabled.png
Normal file
|
After Width: | Height: | Size: 437 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-checked-hover.png
Normal file
|
After Width: | Height: | Size: 478 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-checked.png
Normal file
|
After Width: | Height: | Size: 473 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-mixed-active.png
Normal file
|
After Width: | Height: | Size: 445 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-mixed-disabled.png
Normal file
|
After Width: | Height: | Size: 407 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-mixed-hover.png
Normal file
|
After Width: | Height: | Size: 445 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-mixed.png
Normal file
|
After Width: | Height: | Size: 439 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-unchecked-active.png
Normal file
|
After Width: | Height: | Size: 298 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-unchecked-disabled.png
Normal file
|
After Width: | Height: | Size: 267 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-unchecked-hover.png
Normal file
|
After Width: | Height: | Size: 291 B |
BIN
home-modules/assets/gtk-2.0/assets/radio-unchecked.png
Normal file
|
After Width: | Height: | Size: 292 B |
BIN
home-modules/assets/gtk-2.0/assets/scale-horz-trough-active.png
Normal file
|
After Width: | Height: | Size: 161 B |
|
After Width: | Height: | Size: 160 B |
BIN
home-modules/assets/gtk-2.0/assets/scale-horz-trough.png
Normal file
|
After Width: | Height: | Size: 160 B |
BIN
home-modules/assets/gtk-2.0/assets/scale-slider-active.png
Normal file
|
After Width: | Height: | Size: 535 B |
BIN
home-modules/assets/gtk-2.0/assets/scale-slider-disabled.png
Normal file
|
After Width: | Height: | Size: 250 B |
BIN
home-modules/assets/gtk-2.0/assets/scale-slider-hover.png
Normal file
|
After Width: | Height: | Size: 454 B |