diff --git a/flake.lock b/flake.lock index 894b0f9..88f5c12 100644 --- a/flake.lock +++ b/flake.lock @@ -68,21 +68,6 @@ "type": "github" } }, - "crane": { - "locked": { - "lastModified": 1775790182, - "narHash": "sha256-pG2RWVQY0Pe+rmmXJx+Jpyi+JcgjWzS18m7fcD1B64Q=", - "owner": "ipetkov", - "repo": "crane", - "rev": "534982f1c41834b101e381b07b1121a4f065a374", - "type": "github" - }, - "original": { - "owner": "ipetkov", - "repo": "crane", - "type": "github" - } - }, "firefox-gnome-theme": { "flake": false, "locked": { @@ -175,24 +160,6 @@ "type": "github" } }, - "flake-utils": { - "inputs": { - "systems": "systems_4" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, "fromYaml": { "flake": false, "locked": { @@ -441,22 +408,6 @@ "type": "github" } }, - "nixpkgs_3": { - "locked": { - "lastModified": 1775763530, - "narHash": "sha256-BuTK9z1QEwWPOIakQ1gCN4pa4VwVJpfptYCviy2uOGc=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "b0188973b4b2a5b6bdba8b65381d6cd09a533da0", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "noctalia": { "inputs": { "nixpkgs": [ @@ -564,29 +515,7 @@ "secrets": "secrets", "sops-nix": "sops-nix", "stylix": "stylix", - "wrapper-modules": "wrapper-modules", - "zjstatus": "zjstatus" - } - }, - "rust-overlay": { - "inputs": { - "nixpkgs": [ - "zjstatus", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1775790837, - "narHash": "sha256-RAHjn8sjgfF3D17BaV8iv69o3P+L9aCuE36PFwzoqHU=", - "owner": "oxalica", - "repo": "rust-overlay", - "rev": "c913e0b9525311f103b7e1463ebb0f28c6865d8d", - "type": "github" - }, - "original": { - "owner": "oxalica", - "repo": "rust-overlay", - "type": "github" + "wrapper-modules": "wrapper-modules" } }, "secrets": { @@ -703,21 +632,6 @@ "type": "github" } }, - "systems_4": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, "tinted-foot": { "flake": false, "locked": { @@ -871,27 +785,6 @@ "repo": "xwayland-satellite", "type": "github" } - }, - "zjstatus": { - "inputs": { - "crane": "crane", - "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs_3", - "rust-overlay": "rust-overlay" - }, - "locked": { - "lastModified": 1775885119, - "narHash": "sha256-YNcOUBFt3dYFbhpgIGEPTdBi5vH3LbEGfRoTUokfmyw=", - "owner": "dj95", - "repo": "zjstatus", - "rev": "4ef69ff55930373d60f6c85afc39b2494850feeb", - "type": "github" - }, - "original": { - "owner": "dj95", - "repo": "zjstatus", - "type": "github" - } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 96c3c79..92bc71b 100644 --- a/flake.nix +++ b/flake.nix @@ -30,9 +30,6 @@ url = "github:nix-community/nix-index-database"; inputs.nixpkgs.follows = "nixpkgs"; }; - zjstatus = { - url = "github:dj95/zjstatus"; - }; secrets.url = "git+ssh://git@github.com/gwg313/nixos-secrets.git"; }; diff --git a/modules/features/desktop/niri.nix b/modules/features/desktop/niri.nix index bada396..03d4125 100644 --- a/modules/features/desktop/niri.nix +++ b/modules/features/desktop/niri.nix @@ -30,7 +30,7 @@ enable = true; settings = { default_session = { - command = "${pkgs.tuigreet}/bin/tuigreet --remember --asterisks --container-padding 2 --no-xsession-wrapper --cmd niri-session"; + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --remember --asterisks --container-padding 2 --no-xsession-wrapper --cmd niri-session"; user = "greeter"; }; }; diff --git a/modules/features/desktop/theme-stylix.nix b/modules/features/desktop/theme-stylix.nix index f5a4260..87e07a8 100644 --- a/modules/features/desktop/theme-stylix.nix +++ b/modules/features/desktop/theme-stylix.nix @@ -4,81 +4,33 @@ theme-home-stylix = { includeInEmbeddedHomeManager = false; homeModules = [ - ( - { inputs, pkgs, ... }: - { - imports = [ - inputs.stylix.homeModules.stylix - ]; + ({ inputs, pkgs, ... }: { + imports = [ + inputs.stylix.homeModules.stylix + ]; - stylix = { - enable = true; - base16Scheme = builtins.fetchurl { - url = "https://raw.githubusercontent.com/scottmckendry/cyberdream.nvim/main/extras/base16/cyberdream-light.yaml"; - sha256 = "07fpphdx396wi7093dqyhvpmacnradi7xqxxcwp89x9pnwqxjvq3"; - }; - - cursor = { - name = "phinger-cursors-light"; - package = pkgs.phinger-cursors; - size = 20; - }; - - fonts = { - serif = { - package = pkgs.lmodern; - name = "Latin Modern Roman"; - }; - - sansSerif = { - package = pkgs.inter; - name = "Inter"; - }; - - monospace = { - package = pkgs.fira-code; - name = "Fire Code"; - }; - - emoji = { - package = pkgs.noto-fonts-color-emoji; - name = "Noto Color Emoji"; - }; - sizes = { - applications = 13; - desktop = 13; - popups = 13; - terminal = 13; - }; - }; - }; - } - ) + stylix.enable = true; + stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/atelier-sulphurpool-light.yaml"; + }) ]; }; theme-system-stylix.nixosModules = [ - ( - { inputs, pkgs, ... }: - { - imports = [ - inputs.stylix.nixosModules.stylix - ]; + ({ inputs, pkgs, ... }: { + imports = [ + inputs.stylix.nixosModules.stylix + ]; - stylix = { - enable = true; - base16Scheme = builtins.fetchurl { - url = "https://raw.githubusercontent.com/scottmckendry/cyberdream.nvim/main/extras/base16/cyberdream-light.yaml"; - sha256 = "07fpphdx396wi7093dqyhvpmacnradi7xqxxcwp89x9pnwqxjvq3"; - }; - fonts = { - monospace = { - name = "JetBrainsMono Nerd Font"; - }; + stylix = { + enable = true; + base16Scheme = "${pkgs.base16-schemes}/share/themes/atelier-sulphurpool-light.yaml"; + fonts = { + monospace = { + name = "JetBrainsMono Nerd Font"; }; }; - } - ) + }; + }) ]; }; } diff --git a/modules/features/programs/cli/cli-zellij.nix b/modules/features/programs/cli/cli-zellij.nix deleted file mode 100644 index cb36a59..0000000 --- a/modules/features/programs/cli/cli-zellij.nix +++ /dev/null @@ -1,123 +0,0 @@ -{ inputs, ... }: -{ - config.dendritic.features.cli-zellij = { - homeModules = [ - ( - { - config, - pkgs, - ... - }: - let - zjstatus-pkg = inputs.zjstatus.packages.${pkgs.system}.default; - in - { - stylix.targets.zellij.enable = false; - stylix.targets.tmux.enable = false; - - programs.zellij = { - enable = true; - settings = { - show_startup_tips = false; - pane_frames = false; - default_mode = "locked"; - mouse_mode = true; - simplified_ui = true; - on_force_close = "detach"; - copy_command = "wl-copy"; - default_shell = "zsh"; - - theme = "dendritic"; - themes.dendritic = { - fg = "#${config.lib.stylix.colors.base05}"; - bg = "#${config.lib.stylix.colors.base00}"; - black = "#${config.lib.stylix.colors.base01}"; - red = "#${config.lib.stylix.colors.base08}"; - green = "#${config.lib.stylix.colors.base0B}"; - yellow = "#${config.lib.stylix.colors.base0A}"; - blue = "#${config.lib.stylix.colors.base0D}"; - magenta = "#${config.lib.stylix.colors.base0E}"; - cyan = "#${config.lib.stylix.colors.base0C}"; - white = "#${config.lib.stylix.colors.base07}"; - orange = "#${config.lib.stylix.colors.base09}"; - }; - }; - - extraConfig = '' - layout { - default_tab_template { - pane size=2 borderless=true { - plugin location="file://${zjstatus-pkg}/bin/zjstatus.wasm" { - format_left "{mode}#[bg=#${config.lib.stylix.colors.base00}] {tabs}" - format_center "" - format_right "#[bg=#${config.lib.stylix.colors.base00},fg=#${config.lib.stylix.colors.base0D}]#[bg=#${config.lib.stylix.colors.base0D},fg=#${config.lib.stylix.colors.base00},bold] #[bg=#${config.lib.stylix.colors.base02},fg=#${config.lib.stylix.colors.base05},bold] {session} " - format_space "" - - mode_locked "#[bg=#${config.lib.stylix.colors.base08},fg=#${config.lib.stylix.colors.base00},bold] 🔒 LOCKED #[bg=#${config.lib.stylix.colors.base03},fg=#${config.lib.stylix.colors.base08}]█" - mode_normal "#[bg=#${config.lib.stylix.colors.base0B},fg=#${config.lib.stylix.colors.base00},bold] 🔓 NORMAL #[bg=#${config.lib.stylix.colors.base03},fg=#${config.lib.stylix.colors.base0B}]█" - mode_scroll "#[bg=#${config.lib.stylix.colors.base0A},fg=#${config.lib.stylix.colors.base00},bold] SCROLL #[bg=#${config.lib.stylix.colors.base03},fg=#${config.lib.stylix.colors.base0A}]█" - - tab_normal "#[bg=#${config.lib.stylix.colors.base03},fg=#${config.lib.stylix.colors.base0D}]█#[bg=#${config.lib.stylix.colors.base0D},fg=#${config.lib.stylix.colors.base00},bold]{index} #[bg=#${config.lib.stylix.colors.base02},fg=#${config.lib.stylix.colors.base05},bold] {name}#[bg=#${config.lib.stylix.colors.base03},fg=#${config.lib.stylix.colors.base02},bold]█" - tab_active "#[bg=#${config.lib.stylix.colors.base03},fg=#${config.lib.stylix.colors.base09}]█#[bg=#${config.lib.stylix.colors.base09},fg=#${config.lib.stylix.colors.base00},bold]{index} #[bg=#${config.lib.stylix.colors.base02},fg=#${config.lib.stylix.colors.base05},bold] {name}#[bg=#${config.lib.stylix.colors.base03},fg=#${config.lib.stylix.colors.base02},bold]█" - tab_separator "#[bg=#${config.lib.stylix.colors.base00}] " - } - } - children - } - } - - keybinds clear-defaults=true { - shared { - bind "Alt h" { MoveFocus "Left"; } - bind "Alt j" { MoveFocus "Down"; } - bind "Alt k" { MoveFocus "Up"; } - bind "Alt l" { MoveFocus "Right"; } - bind "Alt f" { ToggleFloatingPanes; } - bind "Alt n" { NewPane; } - } - - locked { - bind "Ctrl b" { SwitchToMode "Normal"; } - } - - normal { - bind "Ctrl b" { SwitchToMode "Locked"; } - bind "Enter" "Esc" { SwitchToMode "Locked"; } - - bind "h" { MoveFocus "Left"; } - bind "j" { MoveFocus "Down"; } - bind "k" { MoveFocus "Up"; } - bind "l" { MoveFocus "Right"; } - bind "|" { NewPane "Right"; } - bind "-" { NewPane "Down"; } - bind "x" { CloseFocus; } - bind "f" { ToggleFloatingPanes; } - bind "z" { ToggleFocusFullscreen; } - bind "t" { NewTab; } - bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; } - - bind "s" { SwitchToMode "Scroll"; } - bind "d" { Detach; } - bind "q" { Quit; } - } - - scroll { - bind "s" "Esc" "Enter" { SwitchToMode "Normal"; } - bind "j" { ScrollDown; } - bind "k" { ScrollUp; } - bind "d" { HalfPageScrollDown; } - bind "u" { HalfPageScrollUp; } - } - - renametab { - bind "Enter" "Esc" { SwitchToMode "Normal"; } - } - } - ''; - }; - - } - ) - ]; - }; -} diff --git a/modules/features/security/systemd/security-systemd-nix-daemon.nix b/modules/features/security/systemd/security-systemd-nix-daemon.nix index 9965d29..b1e1323 100644 --- a/modules/features/security/systemd/security-systemd-nix-daemon.nix +++ b/modules/features/security/systemd/security-systemd-nix-daemon.nix @@ -57,7 +57,7 @@ "~@raw-io" ]; LockPersonality = true; - # MemoryDenyWriteExecute = true; + MemoryDenyWriteExecute = true; DevicePolicy = "closed"; UMask = 0077; }; diff --git a/modules/features/shell.nix b/modules/features/shell.nix index 45c697d..bb4d629 100644 --- a/modules/features/shell.nix +++ b/modules/features/shell.nix @@ -6,7 +6,7 @@ "cli-zoxide" "git-lazygit" "cli-zsh" - "cli-zellij" + "cli-tmux" ]; homeModules = [