obliterate home-manager, rename some elements

This commit is contained in:
atagen 2025-08-13 20:27:25 +10:00
parent 5575604452
commit 2e49d9c484
48 changed files with 1283 additions and 1315 deletions

View file

@ -1,74 +1,25 @@
{
pkgs,
lib,
# lib,
mainUser,
inputs,
config,
# config,
...
}:
let
inherit (config) rice;
in
# let
# inherit (config) rice;
# in
{
imports = [
inputs.niri.nixosModules.niri
inputs.niri-tag.nixosModules.niri-tag
];
hm.programs.niri.settings = {
input = {
warp-mouse-to-focus.enable = true;
};
cursor = {
hide-after-inactive-ms = 5000;
hide-when-typing = true;
size = 16;
theme = rice.cursor.name;
};
layout = {
always-center-single-column = true;
gaps = config.rice.borders.gaps;
default-column-width.proportion = 0.5;
preset-column-widths = map (p: { proportion = p; }) [
(2.0 / 3.0)
0.5
(1.0 / 3.0)
];
focus-ring =
let
pal = rice.palette.hex;
in
{
active = {
color = pal.bright.yellow;
};
inactive = {
color = pal.normal.black;
};
};
};
prefer-no-csd = true;
hotkey-overlay.skip-at-startup = true;
window-rules =
let
v = 10.0;
in
[
{
geometry-corner-radius = {
bottom-left = v;
bottom-right = 0.0;
top-left = 0.0;
top-right = v;
};
clip-to-geometry = true;
}
];
xwayland-satellite = {
enable = true;
path = lib.getExe inputs.niri.packages.${pkgs.system}.xwayland-satellite-unstable;
};
};
# user.desktops.niri = {
# enable = true;
# configFile = ./desktop/niri-config.kdl;
# };
user.xdg.config.files."niri/config.kdl".source = ./desktop/niri-config.kdl;
user.packages = [ inputs.niri.packages.${pkgs.system}.niri-unstable ];
services.greetd = {
enable = true;
restart = false;
@ -91,3 +42,62 @@ in
services.niri-tag.enable = true;
}
# old hm config, TODO template from this
# {
# values = {
# input = {
# warp-mouse-to-focus.enable = true;
# };
# cursor = {
# hide-after-inactive-ms = 5000;
# hide-when-typing = true;
# size = 16;
# theme = rice.cursor.name;
# };
# layout = {
# always-center-single-column = true;
# gaps = config.rice.borders.gaps;
# default-column-width.proportion = 0.5;
# preset-column-widths = map (p: { proportion = p; }) [
# (2.0 / 3.0)
# 0.5
# (1.0 / 3.0)
# ];
# focus-ring =
# let
# pal = rice.palette.hex;
# in
# {
# active = {
# color = pal.bright.yellow;
# };
# inactive = {
# color = pal.normal.black;
# };
# };
# };
# prefer-no-csd = true;
# hotkey-overlay.skip-at-startup = true;
# window-rules =
# let
# v = 10.0;
# in
# [
# {
# geometry-corner-radius = {
# bottom-left = v;
# bottom-right = 0.0;
# top-left = 0.0;
# top-right = v;
# };
# clip-to-geometry = true;
# }
# ];
# xwayland-satellite = {
# enable = true;
# path = lib.getExe inputs.niri.packages.${pkgs.system}.xwayland-satellite-unstable;
# };
# };
# }
#