Compare commits

...

3 Commits

Author SHA1 Message Date
de6ce28912 desktop/niri: move to hostName id, change waybar
Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-04-18 15:43:10 +03:00
02bc6fce53 hosts/legion: some additions
Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-04-18 15:43:10 +03:00
693da19c7f virtual/podman: make podman a backend
Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-04-18 15:43:10 +03:00
7 changed files with 42 additions and 25 deletions

View File

@ -8,6 +8,7 @@
./hardware.nix ./hardware.nix
./networking.nix ./networking.nix
./nix.nix ./nix.nix
./power-saving.nix
./services.nix ./services.nix
./sops.nix ./sops.nix
./users.nix ./users.nix
@ -18,7 +19,7 @@
locale.ukrainian.enable = true; locale.ukrainian.enable = true;
module.stylix = { module.stylix = {
enable = true; enable = true;
theme = "sulphurpool"; theme = "helios";
}; };
opentabletdriver.enable = false; opentabletdriver.enable = false;
qmk-vial.enable = true; qmk-vial.enable = true;

View File

@ -13,8 +13,14 @@
]; ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.enableRedistributableFirmware = true; hardware = {
hardware.nvidia-container-toolkit.enable = true; enableRedistributableFirmware = true;
nvidia-container-toolkit.enable = true;
nvidia = {
dynamicBoost.enable = true;
powerManagement.finegrained = false;
};
};
services.keyd = { services.keyd = {
enable = true; enable = true;

View File

@ -1,6 +1,5 @@
{ {
networking = { networking = {
# hostId = "c7f6c4a1";
hostName = "legion"; hostName = "legion";
networkmanager.enable = true; networkmanager.enable = true;
}; };

View File

@ -0,0 +1,7 @@
{
powerManagement.enable = true;
powerManagement.powertop.enable = true;
services.power-profiles-daemon.enable = true;
services.thermald.enable = true;
services.upower.enable = true;
}

View File

@ -23,7 +23,7 @@
}; };
}; };
scx = { scx = {
enable = true; enable = false;
scheduler = "scx_flash"; scheduler = "scx_flash";
}; };
logind = { logind = {

View File

@ -10,15 +10,15 @@
inherit (config.lib.stylix) colors; inherit (config.lib.stylix) colors;
inherit (config.stylix) cursor; inherit (config.stylix) cursor;
inherit (osConfig.module.stylix) theme; inherit (osConfig.module.stylix) theme;
inherit (osConfig.networking) hostId; inherit (osConfig.networking) hostName;
cfg = config.desktop.niri; cfg = config.desktop.niri;
keyboard = keyboard =
if hostId == "eldrid" if hostName == "eldrid"
then "chromeos" then "chromeos"
else "platform"; else "platform";
xdgPics = xdgPics =
config.xdg.userDirs.pictures; config.xdg.userDirs.pictures;
ifLaptop = mkIf (hostId != "c7f6c4a1"); ifLaptop = mkIf (hostName != "dunamis");
# TODO: make terminal depent on thing outside a module # TODO: make terminal depent on thing outside a module
terminal = getExe pkgs.ghostty; terminal = getExe pkgs.ghostty;
launcher = getExe pkgs.fuzzel; launcher = getExe pkgs.fuzzel;
@ -270,6 +270,7 @@ in {
terminal = terminal + " -e"; terminal = terminal + " -e";
fields = "filename,name,generic,keywords,categories,exec"; fields = "filename,name,generic,keywords,categories,exec";
dpi-aware = false; dpi-aware = false;
width = 20;
horizontal-pad = 12; horizontal-pad = 12;
vertical-pad = 12; vertical-pad = 12;
show-actions = true; show-actions = true;
@ -375,7 +376,7 @@ in {
xkb { xkb {
layout "us,ua" layout "us,ua"
${ ${
if hostId == "c7f6c4a1" if (hostName == "dunamis" || hostName == "legion")
then "// variant \"colemak_dh_ortho,\"" then "// variant \"colemak_dh_ortho,\""
else "variant \"colemak_dh_ortho,\"" else "variant \"colemak_dh_ortho,\""
} }
@ -416,7 +417,11 @@ in {
variable-refresh-rate variable-refresh-rate
} }
output "Philips Consumer Electronics Company 27M2N5500 UK02418033254" { output "Philips Consumer Electronics Company 27M2N5500 UK02418033254" {
mode "2560x1440@180.000" mode "2560x1440@${
if hostName == "legion"
then "144.001"
else "180.000"
}"
variable-refresh-rate variable-refresh-rate
position x=0 y=0 position x=0 y=0
scale 1.33 scale 1.33
@ -641,7 +646,7 @@ in {
settings = { settings = {
bar-0 = { bar-0 = {
# layer = "top"; # layer = "top";
position = "bottom"; position = "top";
height = 24; height = 24;
spacing = 4; spacing = 4;
# margin-left = 63; # margin-left = 63;
@ -652,16 +657,15 @@ in {
"niri/workspaces" "niri/workspaces"
"wlr/taskbar" "wlr/taskbar"
]; ];
modules-center = ["mpris"]; modules-center = ["clock"];
modules-right = [ modules-right = [
"wireplumber"
(ifLaptop "group/laptop") (ifLaptop "group/laptop")
"wireplumber"
"tray" "tray"
"privacy" "privacy"
(ifLaptop "power-profiles-daemon") (ifLaptop "power-profiles-daemon")
"idle_inhibitor" "idle_inhibitor"
"custom/notification" "custom/notification"
"clock"
]; ];
"niri/workspaces" = { "niri/workspaces" = {
format = "{index}"; format = "{index}";
@ -725,11 +729,11 @@ in {
}; };
"tray" = { "tray" = {
icon-size = 16; icon-size = 16;
spacing = 4; spacing = 6;
}; };
"clock" = { "clock" = {
interval = 1; interval = 1;
format = "{:%H:%M}"; format = "{:%H:%M:%S}";
tooltip-format = "{:%d.%m.%Y}"; tooltip-format = "{:%d.%m.%Y}";
}; };
battery = { battery = {
@ -891,25 +895,24 @@ in {
#backlight, #backlight,
#workspaces, #workspaces,
#taskbar, #taskbar,
#taskbar button,
#language, #language,
#clock, #clock,
#battery, #battery,
#backlight, #backlight,
#wireplumber, #wireplumber,
#workspaces button,
#custom-separator { #custom-separator {
padding: 0 0.3em; padding: 0 0.3em;
} }
#privacy,
#tray button,
#privacy-item,
#idle_inhibitor,
#custom-notification, #custom-notification,
#idle_inhibitor,
#power-profiles-daemon, #power-profiles-daemon,
#workspaces button { #privacy,
padding: 0 0.3em; #privacy-item,
} #tray button {
#taskbar button { padding: 0 0.4em;
padding: 0 0.1em; margin: 0 0.2em;
} }
#workspaces button.active { #workspaces button.active {
color: @base0D; color: @base0D;

View File

@ -20,6 +20,7 @@ in {
defaultNetwork.settings.dns_enabled = true; defaultNetwork.settings.dns_enabled = true;
}; };
}; };
virtualisation.oci-containers.backend = "podman";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
podman-tui podman-tui
podman-compose podman-compose