Merge branch 'main' of github.com:anotherhadi/nixy

This commit is contained in:
Hadi
2026-06-04 11:12:07 +02:00
7 changed files with 152 additions and 12 deletions
Generated
+82 -9
View File
@@ -326,6 +326,21 @@
"type": "github" "type": "github"
} }
}, },
"crane": {
"locked": {
"lastModified": 1779130139,
"narHash": "sha256-BLrtr42azquO7MdGFU5a7KiMl3YpFlTeIXqy1fT5GlQ=",
"owner": "ipetkov",
"repo": "crane",
"rev": "edb38893982a3338972bb4a2ec7ce7c29ba10fd9",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"default-creds": { "default-creds": {
"inputs": { "inputs": {
"bun2nix": "bun2nix_3", "bun2nix": "bun2nix_3",
@@ -1399,6 +1414,22 @@
} }
}, },
"nixpkgs_11": { "nixpkgs_11": {
"locked": {
"lastModified": 1778869304,
"narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d233902339c02a9c334e7e593de68855ad26c4cb",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_12": {
"locked": { "locked": {
"lastModified": 1778869304, "lastModified": 1778869304,
"narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=", "narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=",
@@ -1414,7 +1445,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_12": { "nixpkgs_13": {
"locked": { "locked": {
"lastModified": 1775888245, "lastModified": 1775888245,
"narHash": "sha256-nwASzrRDD1JBEu/o8ekKYEXm/oJW6EMCzCRdrwcLe90=", "narHash": "sha256-nwASzrRDD1JBEu/o8ekKYEXm/oJW6EMCzCRdrwcLe90=",
@@ -1430,7 +1461,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_13": { "nixpkgs_14": {
"locked": { "locked": {
"lastModified": 1777954456, "lastModified": 1777954456,
"narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=", "narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=",
@@ -1446,7 +1477,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_14": { "nixpkgs_15": {
"locked": { "locked": {
"lastModified": 1779560665, "lastModified": 1779560665,
"narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=", "narHash": "sha256-tpyBcxPpcQb8ukyNF7DoCwfSY3VPsxHoYwj00Cayv5o=",
@@ -1462,7 +1493,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_15": { "nixpkgs_16": {
"locked": { "locked": {
"lastModified": 1777268161, "lastModified": 1777268161,
"narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=", "narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=",
@@ -1606,6 +1637,26 @@
"type": "github" "type": "github"
} }
}, },
"notashelf-tuigreet": {
"inputs": {
"crane": "crane",
"nixpkgs": "nixpkgs_11",
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1779222498,
"narHash": "sha256-LGIZ5xrJN3Ko0OxOTSDztoFYiIBMBgzQrLpXfNWx/RI=",
"owner": "NotAShelf",
"repo": "tuigreet",
"rev": "605c0a107406f3187632c74fcc67ed03acd30200",
"type": "github"
},
"original": {
"owner": "NotAShelf",
"repo": "tuigreet",
"type": "github"
}
},
"nur": { "nur": {
"inputs": { "inputs": {
"flake-parts": [ "flake-parts": [
@@ -1658,7 +1709,7 @@
"flake-parts": "flake-parts_5", "flake-parts": "flake-parts_5",
"mnw": "mnw", "mnw": "mnw",
"ndg": "ndg", "ndg": "ndg",
"nixpkgs": "nixpkgs_11", "nixpkgs": "nixpkgs_12",
"systems": "systems_7" "systems": "systems_7"
}, },
"locked": { "locked": {
@@ -1759,6 +1810,7 @@
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_10", "nixpkgs": "nixpkgs_10",
"nixpkgs-stable": "nixpkgs-stable", "nixpkgs-stable": "nixpkgs-stable",
"notashelf-tuigreet": "notashelf-tuigreet",
"nvf": "nvf", "nvf": "nvf",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"spicetify-nix": "spicetify-nix", "spicetify-nix": "spicetify-nix",
@@ -1767,9 +1819,30 @@
"usbguard-tui": "usbguard-tui" "usbguard-tui": "usbguard-tui"
} }
}, },
"rust-overlay": {
"inputs": {
"nixpkgs": [
"notashelf-tuigreet",
"nixpkgs"
]
},
"locked": {
"lastModified": 1778555852,
"narHash": "sha256-55EmwooVAS4UpA0oWd5wilKPRqCiHD5BAej9QiNwheY=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "f29b0f7a9f367e0056b716f8aa137cb41e784444",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"sops-nix": { "sops-nix": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_12" "nixpkgs": "nixpkgs_13"
}, },
"locked": { "locked": {
"lastModified": 1777944972, "lastModified": 1777944972,
@@ -1810,7 +1883,7 @@
"inputs": { "inputs": {
"git-hooks": "git-hooks_2", "git-hooks": "git-hooks_2",
"gomod2nix": "gomod2nix_2", "gomod2nix": "gomod2nix_2",
"nixpkgs": "nixpkgs_13" "nixpkgs": "nixpkgs_14"
}, },
"locked": { "locked": {
"lastModified": 1779828271, "lastModified": 1779828271,
@@ -1835,7 +1908,7 @@
"firefox-gnome-theme": "firefox-gnome-theme", "firefox-gnome-theme": "firefox-gnome-theme",
"flake-parts": "flake-parts_6", "flake-parts": "flake-parts_6",
"gnome-shell": "gnome-shell", "gnome-shell": "gnome-shell",
"nixpkgs": "nixpkgs_14", "nixpkgs": "nixpkgs_15",
"nur": "nur", "nur": "nur",
"systems": "systems_10", "systems": "systems_10",
"tinted-kitty": "tinted-kitty", "tinted-kitty": "tinted-kitty",
@@ -2181,7 +2254,7 @@
}, },
"usbguard-tui": { "usbguard-tui": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_15" "nixpkgs": "nixpkgs_16"
}, },
"locked": { "locked": {
"lastModified": 1779819262, "lastModified": 1779819262,
+1
View File
@@ -13,6 +13,7 @@
stylix.url = "github:danth/stylix"; stylix.url = "github:danth/stylix";
sops-nix.url = "github:Mic92/sops-nix"; sops-nix.url = "github:Mic92/sops-nix";
nvf.url = "github:notashelf/nvf"; nvf.url = "github:notashelf/nvf";
notashelf-tuigreet.url = "github:NotAShelf/tuigreet";
bun2nix.url = "github:nix-community/bun2nix"; bun2nix.url = "github:nix-community/bun2nix";
usbguard-tui.url = "github:anotherhadi/usbguard-tui"; usbguard-tui.url = "github:anotherhadi/usbguard-tui";
jwt-tui.url = "github:anotherhadi/jwt-tui"; jwt-tui.url = "github:anotherhadi/jwt-tui";
-2
View File
@@ -14,8 +14,6 @@ in {
home.sessionVariables = { home.sessionVariables = {
TERMINAL = "ghostty"; TERMINAL = "ghostty";
TERM = "ghostty"; TERM = "ghostty";
XMODIFIERS = "@im=none";
GTK_IM_MODULE = "simple";
}; };
programs.ghostty = { programs.ghostty = {
+1
View File
@@ -66,6 +66,7 @@
.helium.browser.layout = 3 | .helium.browser.layout = 3 |
.helium.browser.minimal_location_bar = true | .helium.browser.minimal_location_bar = true |
.helium.browser.show_dynamic_new_tab_button = false | .helium.browser.show_dynamic_new_tab_button = false |
.helium.browser.rounded_frame = false |
.bookmark_bar.show_tab_groups = false | .bookmark_bar.show_tab_groups = false |
.extensions.settings[$id] = { .extensions.settings[$id] = {
"active_permissions": {"api": [], "explicit_host": [], "manifest_permissions": [], "scriptable_host": []}, "active_permissions": {"api": [], "explicit_host": [], "manifest_permissions": [], "scriptable_host": []},
+1 -1
View File
@@ -8,7 +8,7 @@
../../nixos/home-manager.nix ../../nixos/home-manager.nix
../../nixos/nix.nix ../../nixos/nix.nix
../../nixos/systemd-boot.nix ../../nixos/systemd-boot.nix
../../nixos/sddm.nix ../../nixos/tuigreet.nix
../../nixos/users.nix ../../nixos/users.nix
../../nixos/utils.nix ../../nixos/utils.nix
../../nixos/hyprland.nix ../../nixos/hyprland.nix
+62
View File
@@ -0,0 +1,62 @@
{
pkgs,
inputs,
config,
lib,
...
}: let
c = config.lib.stylix.colors;
tuigreet = inputs.notashelf-tuigreet.packages.${pkgs.stdenv.hostPlatform.system}.default;
theme = lib.concatStringsSep ";" [
"border=#${c.base0D}"
"text=#${c.base05}"
"prompt=#${c.base0D}"
"action=#${c.base0C}"
"button=#${c.base0D}"
"container=#${c.base00}"
"input=#${c.base02}"
];
tuigreet-launch = pkgs.writeShellScript "tuigreet-launch" ''
exec ${tuigreet}/bin/tuigreet \
--time \
--time-format '%H:%M %A %d %B' \
--sessions /run/current-system/sw/share/wayland-sessions \
--remember \
--remember-user-session \
--asterisks \
--greeting 'Welcome' \
--container-padding 2 \
--theme '${theme}' \
--power-shutdown 'systemctl poweroff' \
--power-reboot 'systemctl reboot'
'';
in {
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${tuigreet-launch}";
user = "greeter";
};
};
};
# this is a life saver.
# literally no documentation about this anywhere.
# might be good to write about this...
# https://www.reddit.com/r/NixOS/comments/u0cdpi/tuigreet_with_xmonad_how/
systemd.services.greetd.serviceConfig = {
Type = "idle";
StandardInput = "tty";
StandardOutput = "tty";
StandardError = "journal"; # Without this errors will spam on screen
# Without these bootlogs will spam on screen
TTYReset = true;
TTYVHangup = true;
TTYVTDisallocate = true;
};
environment.systemPackages = [tuigreet];
}
+5
View File
@@ -33,6 +33,11 @@ in {
timeZone = timeZone; timeZone = timeZone;
}; };
i18n.defaultLocale = defaultLocale; i18n.defaultLocale = defaultLocale;
i18n.inputMethod = {
enable = true;
type = "fcitx5";
fcitx5.addons = with pkgs; [ fcitx5-gtk ];
};
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = {
LC_ADDRESS = extraLocale; LC_ADDRESS = extraLocale;
LC_IDENTIFICATION = extraLocale; LC_IDENTIFICATION = extraLocale;