This commit is contained in:
2026-03-08 00:25:11 +00:00
parent 9d4baf7266
commit 9bf816f6a9
2 changed files with 87 additions and 25 deletions

1
alejandra.toml Normal file
View File

@@ -0,0 +1 @@
# indentation = "FourSpaces"

111
flake.nix
View File

@@ -14,11 +14,26 @@
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
try-cli.url = "github:tobi/try-cli"; try-cli = {
elephant.url = "github:abenz1267/elephant"; url = "github:tobi/try-cli";
inputs.nixpkgs.follows = "nixpkgs";
};
elephant = {
url = "github:abenz1267/elephant";
inputs.nixpkgs.follows = "nixpkgs";
};
walker = { walker = {
url = "github:abenz1267/walker"; url = "github:abenz1267/walker";
inputs.elephant.follows = "elephant"; inputs.elephant.follows = "elephant";
inputs.nixpkgs.follows = "nixpkgs";
};
voxtype = {
url = "github:peteonrails/voxtype";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland-preview-share-picker = {
url = "github:WhySoBad/hyprland-preview-share-picker";
inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
@@ -30,6 +45,8 @@
disko, disko,
home-manager, home-manager,
try-cli, try-cli,
voxtype,
hyprland-preview-share-picker,
... ...
} @ inputs: let } @ inputs: let
lib = nixpkgs.lib; lib = nixpkgs.lib;
@@ -147,7 +164,20 @@
device = "/.swapvol/swapfile"; device = "/.swapvol/swapfile";
} ]; } ];
powerManagement.enable = true; powerManagement.enable = true;
systemd = {
packages = with pkgs; [
uwsm
];
settings = {
Manager = {
DefaultTimeoutStopSec = "5s";
};
};
};
environment = { environment = {
pathsToLink = [
"/share/uwsm"
];
persistence."/persist" = { persistence."/persist" = {
hideMounts = true; hideMounts = true;
directories = [ directories = [
@@ -164,6 +194,10 @@
]; ];
}; };
systemPackages = with pkgs; [ systemPackages = with pkgs; [
hyprland-preview-share-picker.packages.${system}.default
makima
pywal16
uwsm
v4l-utils v4l-utils
brightnessctl brightnessctl
satty satty
@@ -207,6 +241,11 @@
p7zip p7zip
impala impala
xdg-terminal-exec xdg-terminal-exec
rustc
cargo
gcc
rustfmt
clippy
]; ];
}; };
networking = { networking = {
@@ -243,14 +282,6 @@
enable = true; enable = true;
openFirewall = true; openFirewall = true;
}; };
uwsm = {
enable = true;
waylandCompositors.hyprland = {
prettyName = "Hyprland";
comment = "Hyprland compositor managed by UWSM";
binPath = "/run/current-system/sw/bin/Hyprland";
};
};
zsh = { zsh = {
enable = true; enable = true;
}; };
@@ -318,6 +349,7 @@
".config/sinew.in" ".config/sinew.in"
".local/share/direnv" ".local/share/direnv"
".local/share/nvim" ".local/share/nvim"
".local/share/voxtype"
".local/share/zoxide" ".local/share/zoxide"
".local/share/Enpass" ".local/share/Enpass"
".local/share/Steam" ".local/share/Steam"
@@ -395,18 +427,17 @@
chromium chromium
direnv direnv
wiremix wiremix
xournalpp
bluetui bluetui
spotify spotify
nodePackages.pnpm nodePackages.pnpm
try-cli.packages.${system}.default try-cli.packages.${system}.default
# (python3.withPackages (python-pkgs: [ python-pkgs.pip python-pkgs.requests ])) # (python3.withPackages (python-pkgs: [ python-pkgs.pip python-pkgs.requests ]))
# rustup
# zig # zig
obsidian obsidian
mailspring mailspring
# thunderbird # thunderbird
# libreoffice-qt # libreoffice-qt
# pkgs-unstable.nerd-fonts.fira-code
# hunspell # hunspell
# blueberry # blueberry
# pkgs-unstable.hyprshot # pkgs-unstable.hyprshot
@@ -518,24 +549,34 @@
}; };
imports = [ imports = [
inputs.walker.homeManagerModules.default inputs.walker.homeManagerModules.default
# inputs.elephant.homeManagerModules.default inputs.voxtype.homeManagerModules.default
]; ];
services = { services = {
swayosd.enable = true; swayosd.enable = true;
}; };
systemd.user = { systemd.user = {
enable = true; enable = true;
startServices = true; timers = {
# services = { "station-battery-monitor" = {
# walker = { wantedBy = [ "timers.target" ];
# Unit.Description = "Walker - Application Runner"; timerConfig = {
# Install.WantedBy = ["graphical-session.target"]; OnBootSec = "1min";
# }; OnUnitActiveSec = "30sec";
# elephant = { Unit = "station-battery-monitor.service";
# Unit.Description = "Elephant launcher backend"; };
# Install.WantedBy = ["graphical-session.target"]; };
# }; };
# }; services = {
"station-battery-monitor" = {
after = "graphical-session.target";
serviceConfig = {
Type = "oneshot";
ExecStart = "%h/.local/share/omarchy/bin/omarchy-battery-monitor";
Environment = "DISPLAY=:0";
LogLevelMax = "warning";
};
};
};
}; };
programs = let programs = let
lock-false = { lock-false = {
@@ -549,11 +590,17 @@
in { in {
walker = { walker = {
enable = true; enable = true;
config = {};
runAsService = true; runAsService = true;
}; };
elephant = { elephant = {
enable = true; enable = true;
installService = true; };
voxtype = {
enable = true;
package = voxtype.packages.${system}.vulkan;
model.name = "base.en";
service.enable = true;
}; };
firefox = { firefox = {
enable = true; enable = true;
@@ -658,6 +705,20 @@
inherit inputs; inherit inputs;
}; };
}; };
system = {
autoUpgrade = {
enable = true;
allowReboot = false;
runGarbageCollection = true;
date = "daily";
};
};
fonts = {
packages = with pkgs; [
nerd-fonts.jetbrains-mono
nerd-fonts.fira-code
];
};
} }
]; ];
}; };