Compare commits

..

3 commits

Author SHA1 Message Date
willifan
f6ec76d301 enable disko for Lenni 2025-05-15 21:33:47 +02:00
willifan
e6ed8b1dbe added compilers to dev 2025-05-09 10:16:29 +02:00
willifan
92c74027d8 added autobrightness to Lenni 2025-05-07 18:00:26 +02:00
4 changed files with 17 additions and 13 deletions

View file

@ -2,7 +2,7 @@
{
imports = [
./hardware-configuration.nix
#./disko.nix
./disko.nix
../../modules/default

View file

@ -3,7 +3,7 @@
disk = {
nvme0n1 = {
type = "disk";
device = "/dev/nvme0n1";
device = "/dev/disk/by-id/nvme-SHGP31-1000GM_KND1N583310801V1L";
content = {
type = "gpt";
partitions = {
@ -23,14 +23,7 @@
size = "100%";
content = {
type = "luks";
name = "crypted";
# disable settings.keyFile if you want to use interactive password entry
#passwordFile = "/tmp/secret.key"; # Interactive
settings = {
allowDiscards = true;
keyFile = "/tmp/secret.key";
};
additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
name = "cryptroot";
content = {
type = "btrfs";
extraArgs = [ "-f" ];
@ -53,7 +46,7 @@
};
"/swap" = {
mountpoint = "/.swapvol";
swap.swapfile.size = "20M";
swap.swapfile.size = "40G";
};
};
};

View file

@ -1,6 +1,10 @@
{ inputs, lib, config, pkgs, ... }:
let
SCRIPTS = "$XDG_CONFIG_HOME/desktop-utils/scripts";
autobrightness = fetchTarball {
url = "https://git.huwe.mooo.com/willifan/Mac-like-automatic-brightness/archive/0.1.0.tar.gz";
sha256 = "1andyln5vmm934nl1lsid2gpc88h9il83b84yd9dmqr7pninwk37";
};
in
lib.mkIf config.desktop.wm.niri.enable {
@ -14,6 +18,7 @@ lib.mkIf config.desktop.wm.niri.enable {
home.packages = [
pkgs.xwayland-satellite
pkgs.bc
];
programs.niri.settings = {
@ -26,6 +31,9 @@ lib.mkIf config.desktop.wm.niri.enable {
{
command = [ "xwayland-satellite" ":0" ];
}
{
command = [ "sh" "${autobrightness}/AutomaticBrightness.sh" ];
}
];
hotkey-overlay.skip-at-startup = true;
@ -77,8 +85,8 @@ lib.mkIf config.desktop.wm.niri.enable {
"XF86AudioPrev".action.spawn = [ "playerctl" "previous" ];
"XF86AudioPlay".action.spawn = [ "playerctl" "play-pause" ];
"XF86AudioNext".action.spawn = [ "playerctl" "next" ];
"XF86MonBrightnessDown".action.spawn = [ "light" "-U" "5" ];
"XF86MonBrightnessUp".action.spawn = [ "light" "-A" "5" ];
"XF86MonBrightnessDown".action.spawn = [ "sh" "${autobrightness}/AutomaticBrightness.sh" "-d" "10" ];
"XF86MonBrightnessUp".action.spawn = [ "sh" "${autobrightness}/AutomaticBrightness.sh" "-i" "10" ];
"Print".action.screenshot = { };
};

View file

@ -4,5 +4,8 @@ lib.mkIf config.desktop.dev.enable {
environment.systemPackages = with pkgs; [
jetbrains.rust-rover
jetbrains.pycharm-community-bin
clang
clang-tools
gcc
];
}