mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-12-05 02:38:44 +01:00
Compare commits
8 commits
ee44af814e
...
e222066a87
Author | SHA1 | Date | |
---|---|---|---|
e222066a87 | |||
7995708a59 | |||
020a9276d5 | |||
f22a20b08c | |||
c64f321cc5 | |||
ee901946e2 | |||
737bdba912 | |||
d628301131 |
|
@ -45,6 +45,8 @@ with builtins; {
|
||||||
|
|
||||||
htmlq
|
htmlq
|
||||||
|
|
||||||
|
prusa-slicer
|
||||||
|
zed-editor
|
||||||
wget
|
wget
|
||||||
git
|
git
|
||||||
neofetch
|
neofetch
|
||||||
|
@ -158,4 +160,10 @@ with builtins; {
|
||||||
};
|
};
|
||||||
|
|
||||||
users.defaultUserShell = pkgs.nushell;
|
users.defaultUserShell = pkgs.nushell;
|
||||||
|
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 60d";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
58
flake.lock
58
flake.lock
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1718078026,
|
"lastModified": 1721842668,
|
||||||
"narHash": "sha256-LbQabH6h86ZzTvDnaZHmMwedRZNB2jYtUQzmoqWQoJ8=",
|
"narHash": "sha256-k3oiD2z2AAwBFLa4+xfU+7G5fisRXfkvrMTCJrjZzXo=",
|
||||||
"owner": "ipetkov",
|
"owner": "ipetkov",
|
||||||
"repo": "crane",
|
"repo": "crane",
|
||||||
"rev": "a3f0c63eed74a516298932b9b1627dd80b9c3892",
|
"rev": "529c1a0b1f29f0d78fa3086b8f6a134c71ef3aaf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -28,11 +28,11 @@
|
||||||
"rust-analyzer-src": "rust-analyzer-src"
|
"rust-analyzer-src": "rust-analyzer-src"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717827974,
|
"lastModified": 1722148092,
|
||||||
"narHash": "sha256-ixopuTeTouxqTxfMuzs6IaRttbT8JqRW5C9Q/57WxQw=",
|
"narHash": "sha256-5QS64rfIFDzU1jmZrOK6wyZOCi6Vn/90apWRI6Hy+xk=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "fenix",
|
"repo": "fenix",
|
||||||
"rev": "ab655c627777ab5f9964652fe23bbb1dfbd687a8",
|
"rev": "b39d8959f286dc7b9da91ae92f6af56de0169e87",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -104,11 +104,11 @@
|
||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717871542,
|
"lastModified": 1721054193,
|
||||||
"narHash": "sha256-eUB9gt3Hva7atNOv/Vel1bchD/9Pziz0C/r9K0vh+qQ=",
|
"narHash": "sha256-xonM9t7oZ8YiwcEXuVlhs+8FsMSXI42djzUgpDt1n/w=",
|
||||||
"owner": "pascalkuthe",
|
"owner": "pascalkuthe",
|
||||||
"repo": "helix",
|
"repo": "helix",
|
||||||
"rev": "418ac237bf1e162b866a873d6cd33bb69f5d1bb4",
|
"rev": "386fa371d708f8e91a83762dfc7a58971681e091",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -125,11 +125,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717931644,
|
"lastModified": 1722119539,
|
||||||
"narHash": "sha256-Sz8Wh9cAiD5FhL8UWvZxBfnvxETSCVZlqWSYWaCPyu0=",
|
"narHash": "sha256-2kU90liMle0vKR8exJx1XM4hZh9CdNgZGHCTbeA9yzY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "3d65009effd77cb0d6e7520b68b039836a7606cf",
|
"rev": "d0240a064db3987eb4d5204cf2400bc4452d9922",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -167,11 +167,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717647344,
|
"lastModified": 1720695775,
|
||||||
"narHash": "sha256-m8XYt8NU2T4gvkien7H7LFGXHhSA5z4tHOeuXQ3DJi4=",
|
"narHash": "sha256-8Oqzl9QPjEe/n8y0R2tC6+2v/H6xBgABHXOJwxmnBg0=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "4e25f1ab68f2270f9cff59216056c21073db0164",
|
"rev": "d70318fb946a0e720dfdd1fb10b0645c14e2a02a",
|
||||||
"revCount": 87,
|
"revCount": 94,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.lix.systems/lix-project/nixos-module"
|
"url": "https://git.lix.systems/lix-project/nixos-module"
|
||||||
},
|
},
|
||||||
|
@ -183,7 +183,7 @@
|
||||||
"mac-brcm-fw": {
|
"mac-brcm-fw": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709065070,
|
"lastModified": 1701030348,
|
||||||
"narHash": "sha256-+kW8ogc6DykjMVlrr+3vWKs9ZUdJ9EW72LbY7k/Qvh4=",
|
"narHash": "sha256-+kW8ogc6DykjMVlrr+3vWKs9ZUdJ9EW72LbY7k/Qvh4=",
|
||||||
"path": "/home/jade/nix-configs/mac-brcm-fw",
|
"path": "/home/jade/nix-configs/mac-brcm-fw",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
|
@ -211,11 +211,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717974879,
|
"lastModified": 1722062969,
|
||||||
"narHash": "sha256-GTO3C88+5DX171F/gVS3Qga/hOs/eRMxPFpiHq2t+D8=",
|
"narHash": "sha256-QOS0ykELUmPbrrUGmegAUlpmUFznDQeR4q7rFhl8eQg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c7b821ba2e1e635ba5a76d299af62821cbcb09f3",
|
"rev": "b73c2221a46c13557b1b3be9c2070cc42cf01eb3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -226,11 +226,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1718060059,
|
"lastModified": 1720535198,
|
||||||
"narHash": "sha256-9XKFni8VMXo81RTq9XygCyaO3I/7UKpwIlM/yn0MdcM=",
|
"narHash": "sha256-zwVvxrdIzralnSbcpghA92tWu2DV2lwv89xZc8MTrbg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a3c8d64ba846725f040582b2d3b875466d2115bd",
|
"rev": "205fd4226592cc83fd4c0885a3e4c9c400efabb5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -241,11 +241,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable-small": {
|
"nixpkgs-unstable-small": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1718083092,
|
"lastModified": 1722179153,
|
||||||
"narHash": "sha256-EQsPXycAbmby4meQUNLYfFaGOiqz2J9AlwFRV4UiHnY=",
|
"narHash": "sha256-ZJ75T0GWpLI4hoaL+YxueHD2pXG+VYpYtPJdwbkERVs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "aa1ebdaf49a606e21c06e0f6ed7aece9a41831c3",
|
"rev": "dcfb2878c687e5eb5fcbc5116969c45c85be34e2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -272,11 +272,11 @@
|
||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717583671,
|
"lastModified": 1722099723,
|
||||||
"narHash": "sha256-+lRAmz92CNUxorqWusgJbL9VE1eKCnQQojglRemzwkw=",
|
"narHash": "sha256-61f+rvQAObm/TuBEqYFNUTngm/wXcuNhGtQbAmfZVvY=",
|
||||||
"owner": "rust-lang",
|
"owner": "rust-lang",
|
||||||
"repo": "rust-analyzer",
|
"repo": "rust-analyzer",
|
||||||
"rev": "48bbdd6a74f3176987d5c809894ac33957000d19",
|
"rev": "a46788318cce3b62e14606f70a14896b223ee5ec",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -9,18 +9,14 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
jade = {
|
jade = {
|
||||||
flatpak.enable = true;
|
|
||||||
desktop = {
|
desktop = {
|
||||||
compositing.enable = true;
|
|
||||||
syncthing.enable = true;
|
syncthing.enable = true;
|
||||||
kdeconnect.enable = true;
|
kdeconnect.enable = true;
|
||||||
cloud.enable = true;
|
cloud.enable = true;
|
||||||
social.enable = true;
|
social.enable = true;
|
||||||
gaming.enable = true;
|
gaming.enable = true;
|
||||||
mail.enable = true;
|
mail.enable = true;
|
||||||
evremap.enable = false;
|
|
||||||
};
|
};
|
||||||
terminal.enable = true;
|
|
||||||
};
|
};
|
||||||
boot = {
|
boot = {
|
||||||
loader = {
|
loader = {
|
||||||
|
@ -59,11 +55,6 @@
|
||||||
# missing: menu-qalc picom-jonaburg
|
# missing: menu-qalc picom-jonaburg
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# TODO: clean up.
|
# TODO: clean up.
|
||||||
libGL
|
|
||||||
libreoffice-fresh
|
|
||||||
wireshark
|
|
||||||
awesomebump
|
|
||||||
|
|
||||||
zenstates
|
zenstates
|
||||||
zenmonitor
|
zenmonitor
|
||||||
nvtop-amd
|
nvtop-amd
|
||||||
|
|
|
@ -4,4 +4,7 @@
|
||||||
./flatpak.nix
|
./flatpak.nix
|
||||||
./home
|
./home
|
||||||
];
|
];
|
||||||
|
services.upower = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,126 @@
|
||||||
programs.wofi.enable = true;
|
programs.wofi.enable = true;
|
||||||
programs.swaylock.enable = true;
|
programs.swaylock.enable = true;
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
extraPortals = [pkgs.xdg-desktop-portal-wlr];
|
||||||
|
# sway = {
|
||||||
|
# default = ["wlr"];
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
|
||||||
|
services.swayidle = {
|
||||||
|
enable = true;
|
||||||
|
events = [
|
||||||
|
{
|
||||||
|
event = "lock";
|
||||||
|
command = "swaylock -c 441144";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.waybar = {
|
||||||
|
enable = true;
|
||||||
|
systemd = {
|
||||||
|
enable = true;
|
||||||
|
target = "sway-session.target";
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
infobar = {
|
||||||
|
layer = "top";
|
||||||
|
position = "top";
|
||||||
|
modules-left = ["memory" "cpu" "network" "group/bats"];
|
||||||
|
modules-center = ["sway/window"];
|
||||||
|
modules-right = ["clock"];
|
||||||
|
"group/bats" = {
|
||||||
|
orientation = "inherit";
|
||||||
|
modules = ["battery#bat0" "battery#bat1" "upower#headphones"];
|
||||||
|
};
|
||||||
|
"battery#bat0" = {
|
||||||
|
adapter = "AC";
|
||||||
|
bat = "BAT0";
|
||||||
|
interval = 2;
|
||||||
|
format = "{icon} {capacity}% {time}";
|
||||||
|
format-charging = " {icon} {capacity}% {time}";
|
||||||
|
format-time = "{h}:{m}";
|
||||||
|
format-icons = [
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
];
|
||||||
|
tooltip = true;
|
||||||
|
tooltip-format = "BAT0: {cycles} cycles";
|
||||||
|
};
|
||||||
|
"battery#bat1" = {
|
||||||
|
adapter = "AC";
|
||||||
|
bat = "BAT1";
|
||||||
|
interval = 2;
|
||||||
|
format = " {icon} {capacity}% {time}";
|
||||||
|
format-time = "{H}:{M}";
|
||||||
|
format-icons = [
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
];
|
||||||
|
tooltip = true;
|
||||||
|
tooltip-format = "BAT1: {cycles} cycles";
|
||||||
|
};
|
||||||
|
"upower#headphones" = {
|
||||||
|
native-path = "/org/bluez/hci0/dev_4C_87_5D_29_B3_76";
|
||||||
|
format = " {percentage} {time}";
|
||||||
|
hide-if-empty = true;
|
||||||
|
show-icon = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
interactiveBar = {
|
||||||
|
layer = "top";
|
||||||
|
position = "bottom";
|
||||||
|
modules-left = ["sway/workspaces" "sway/mode"];
|
||||||
|
modules-center = ["tray"];
|
||||||
|
modules-right = ["wlr/taskbar"];
|
||||||
|
};
|
||||||
|
# mainBar = {
|
||||||
|
# layer = "top";
|
||||||
|
# position = "top";
|
||||||
|
# height = 30;
|
||||||
|
# output = [
|
||||||
|
# "eDP-1"
|
||||||
|
# "HDMI-A-1"
|
||||||
|
# ];
|
||||||
|
# modules-left = ["sway/workspaces" "sway/mode" "wlr/taskbar"];
|
||||||
|
# modules-center = ["sway/window" "custom/hello-from-waybar"];
|
||||||
|
# modules-right = ["mpd" "custom/mymodule#with-css-id" "temperature"];
|
||||||
|
|
||||||
|
# "sway/workspaces" = {
|
||||||
|
# disable-scroll = true;
|
||||||
|
# all-outputs = true;
|
||||||
|
# };
|
||||||
|
# "custom/hello-from-waybar" = {
|
||||||
|
# format = "hello {}";
|
||||||
|
# max-length = 40;
|
||||||
|
# interval = "once";
|
||||||
|
# exec = pkgs.writeShellScript "hello-from-waybar" ''
|
||||||
|
# echo "from within waybar"
|
||||||
|
# '';
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd = {
|
systemd = {
|
||||||
|
@ -43,6 +163,7 @@
|
||||||
xkb_variant = "altgr-intl";
|
xkb_variant = "altgr-intl";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
bars = [];
|
||||||
menu = "wofi -d";
|
menu = "wofi -d";
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
keybindings = with {
|
keybindings = with {
|
||||||
|
@ -73,8 +194,8 @@
|
||||||
# "${mod}+Shift+c" = "focus child";
|
# "${mod}+Shift+c" = "focus child";
|
||||||
# screenshot
|
# screenshot
|
||||||
# "${mod}+w" = "exec window-screenshot.sh";
|
# "${mod}+w" = "exec window-screenshot.sh";
|
||||||
# "${mod}+s" = "exec flameshot gui -c -p $HOME/Pictures/screenshots";
|
"${mod}+s" = "exec flameshot gui -c -p $HOME/Pictures/screenshots";
|
||||||
# "${mod}+a" = "exec flameshot screen -c -p $HOME/Pictures/screenshots";
|
"${mod}+a" = "exec flameshot screen -c -p $HOME/Pictures/screenshots";
|
||||||
# "${mod}+t" = "exec ocr-screenshot.sh";
|
# "${mod}+t" = "exec ocr-screenshot.sh";
|
||||||
|
|
||||||
# rofi fuckery
|
# rofi fuckery
|
||||||
|
@ -169,7 +290,7 @@
|
||||||
|
|
||||||
window = {
|
window = {
|
||||||
border = 2;
|
border = 2;
|
||||||
titlebar = true;
|
titlebar = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -251,6 +251,7 @@
|
||||||
"app.shield.optoutstudies.enabled" = false;
|
"app.shield.optoutstudies.enabled" = false;
|
||||||
"app.normandy.enabled" = false;
|
"app.normandy.enabled" = false;
|
||||||
"app.normandy.api_url" = "";
|
"app.normandy.api_url" = "";
|
||||||
|
"dom.private-attribution.submission.enabled" = false;
|
||||||
|
|
||||||
"browser.safebrowsing.malware.enabled" = false;
|
"browser.safebrowsing.malware.enabled" = false;
|
||||||
"browser.safebrowsing.phishing.enabled" = false;
|
"browser.safebrowsing.phishing.enabled" = false;
|
||||||
|
|
|
@ -22,10 +22,11 @@
|
||||||
package = config.users.defaultUserShell;
|
package = config.users.defaultUserShell;
|
||||||
configFile.source = ../../other/config.nu;
|
configFile.source = ../../other/config.nu;
|
||||||
envFile.source = ../../other/env.nu;
|
envFile.source = ../../other/env.nu;
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# source ${pkgs.nu_scripts}/share/nu_scripts/modules/nix/nix.nu;
|
plugin use ${pkgs.nushellPlugins.query}/bin/nu_plugin_query;
|
||||||
# use ${pkgs.nu_scripts}/share/nu_scripts/modules/background_task/job.nu;
|
plugin use ${pkgs.nushellPlugins.polars}/bin/nu_plugin_polars;
|
||||||
# '';
|
plugin use ${pkgs.nushellPlugins.formats}/bin/nu_plugin_formats;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
programs.starship.enableNushellIntegration = true;
|
programs.starship.enableNushellIntegration = true;
|
||||||
programs.carapace.enableNushellIntegration = true;
|
programs.carapace.enableNushellIntegration = true;
|
||||||
|
|
Loading…
Reference in a new issue