update some aspects, fix pinentry

This commit is contained in:
Grimmauld 2024-03-21 16:03:56 +01:00
parent 154b9aa8ec
commit c69b04f4ba
6 changed files with 165 additions and 17 deletions

View File

@ -1,6 +1,61 @@
{ {
"nodes": { "nodes": {
"cachix": {
"locked": {
"lastModified": 1635350005,
"narHash": "sha256-tAMJnUwfaDEB2aa31jGcu7R7bzGELM9noc91L2PbVjg=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "1c1f5649bb9c1b0d98637c8c365228f57126f361",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-20.09",
"repo": "nixpkgs",
"type": "github"
}
},
"ff_nightly": {
"inputs": {
"cachix": "cachix",
"flake-compat": "flake-compat",
"lib-aggregate": "lib-aggregate",
"mozilla": "mozilla",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1710982600,
"narHash": "sha256-KC8V8aTUHZAORn0uJ5ENKkF8VIBvNmZvkF/O/nSaB1A=",
"owner": "nix-community",
"repo": "flake-firefox-nightly",
"rev": "6778dc738c3a40a63df286005d44d2ddf5903e47",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "flake-firefox-nightly",
"type": "github"
}
},
"flake-compat": { "flake-compat": {
"locked": {
"lastModified": 1688025799,
"narHash": "sha256-ktpB4dRtnksm9F5WawoIkEneh1nrEvuxb5lJFt1iOyw=",
"owner": "nix-community",
"repo": "flake-compat",
"rev": "8bf105319d44f6b9f0d764efa4fdef9f1cc9ba1c",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_2": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1696426674, "lastModified": 1696426674,
@ -18,7 +73,7 @@
}, },
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib_2"
}, },
"locked": { "locked": {
"lastModified": 1709336216, "lastModified": 1709336216,
@ -34,6 +89,59 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"lib-aggregate": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1710677371,
"narHash": "sha256-yqjXunc+Zvqf6rcH7W9wMvhr18jMZhDvIdnretlfj78=",
"owner": "nix-community",
"repo": "lib-aggregate",
"rev": "f890211817b941d9ed9de48d62ba8553fa2c20f3",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "lib-aggregate",
"type": "github"
}
},
"mozilla": {
"flake": false,
"locked": {
"lastModified": 1704373101,
"narHash": "sha256-+gi59LRWRQmwROrmE1E2b3mtocwueCQqZ60CwLG+gbg=",
"owner": "mozilla",
"repo": "nixpkgs-mozilla",
"rev": "9b11a87c0cc54e308fa83aac5b4ee1816d5418a2",
"type": "github"
},
"original": {
"owner": "mozilla",
"repo": "nixpkgs-mozilla",
"type": "github"
}
},
"nix-gaming": { "nix-gaming": {
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
@ -42,11 +150,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710637843, "lastModified": 1711003080,
"narHash": "sha256-NVszlVTM0sEe8yZuOShitwOhNdl2juD7032SQg2dV+U=", "narHash": "sha256-YAycKYKMytiQe9L6yZuVcq/1rCFcDHIA6/G78oSofV8=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "da2c09734818d85ef4d112997b5188b62cfdd0fd", "rev": "1e435616e688c2b9125cd5282febcad3ab981d5e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -57,11 +165,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1710631334, "lastModified": 1710806803,
"narHash": "sha256-rL5LSYd85kplL5othxK5lmAtjyMOBg390sGBTb3LRMM=", "narHash": "sha256-qrxvLS888pNJFwJdK+hf1wpRCSQcqA6W5+Ox202NDa0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c75037bbf9093a2acb617804ee46320d6d1fea5a", "rev": "b06025f1533a1e07b6db3e75151caa155d1c7eb3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -71,6 +179,21 @@
} }
}, },
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": {
"lastModified": 1710636348,
"narHash": "sha256-/kB+ZWSdkZjbZ0FTqm0u84sf2jFS+30ysaEajmBjtoY=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "fa827dda806c5aa98f454da4c567991ab8ce422c",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-lib_2": {
"locked": { "locked": {
"dir": "lib", "dir": "lib",
"lastModified": 1709237383, "lastModified": 1709237383,
@ -90,7 +213,8 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "ff_nightly": "ff_nightly",
"flake-compat": "flake-compat_2",
"nix-gaming": "nix-gaming", "nix-gaming": "nix-gaming",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"swaymux": "swaymux", "swaymux": "swaymux",
@ -132,9 +256,24 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": { "utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1710146030, "lastModified": 1710146030,

View File

@ -16,12 +16,16 @@
url = "git+https://git.grimmauld.de/Grimmauld/swaymux"; url = "git+https://git.grimmauld.de/Grimmauld/swaymux";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
ff_nightly = {
url = "github:nix-community/flake-firefox-nightly";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = inputs @ { self, swaymux, utils, nixpkgs, nix-gaming, ... }: let outputs = inputs @ { self, swaymux, utils, nixpkgs, nix-gaming, ff_nightly, ... }: let
lib = nixpkgs.lib; lib = nixpkgs.lib;
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs { inherit system; overlays = []; };
in { in {
nixosModules = rec { nixosModules = rec {
default = grimmShared; default = grimmShared;

View File

@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }: let { grimm-shared-inputs, pkgs, config, lib, ... }: let
cfg = config.grimmShared; cfg = config.grimmShared;
in { in {
config = with cfg; lib.mkIf (enable && firefox.enable) { config = with cfg; lib.mkIf (enable && firefox.enable) {
@ -6,6 +6,7 @@ in {
++ lib.optionals config.services.desktopManager.plasma6.enable [ pkgs.plasma-browser-integration ]; ++ lib.optionals config.services.desktopManager.plasma6.enable [ pkgs.plasma-browser-integration ];
programs.firefox = { programs.firefox = {
# package = grimm-shared-inputs.ff_nightly.packages.${pkgs.system}.firefox-nightly-bin;
enable = true; enable = true;
nativeMessagingHosts.packages = [] nativeMessagingHosts.packages = []
++ lib.optionals (cfg.tooling.enable && cfg.tooling.pass) [ pkgs.passff-host ]; ++ lib.optionals (cfg.tooling.enable && cfg.tooling.pass) [ pkgs.passff-host ];

View File

@ -20,7 +20,7 @@ in {
settings = { settings = {
# default-cache-ttl = 6000; # default-cache-ttl = 6000;
}; };
pinentryPackage = lib.mkDefault pkgs.pinentry; pinentryPackage = lib.mkForce pkgs.pinentry;
enable = true; enable = true;
# enableSSHSupport = true; # enableSSHSupport = true;
}; };

View File

@ -182,6 +182,7 @@ mode "resize" {
bindsym Return mode "default" bindsym Return mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
} }
# test
''; '';
}; };
}; };

View File

@ -6,12 +6,14 @@ in {
build_keybind_lines = lib.mapAttrsToList (key: value: "bindsym ${key} ${value}"); build_keybind_lines = lib.mapAttrsToList (key: value: "bindsym ${key} ${value}");
build_exec_lines = map (item: "exec " + item); build_exec_lines = map (item: "exec " + item);
sway_conf = pkgs.writeText "sway.conf" (lib.strings.concatLines [ text = lib.strings.concatLines [
(lib.strings.concatLines (build_definition_lines cfg.sway.definitions)) (lib.strings.concatLines (build_definition_lines cfg.sway.definitions))
(lib.strings.concatLines (build_keybind_lines cfg.sway.keybinds)) (lib.strings.concatLines (build_keybind_lines cfg.sway.keybinds))
(lib.strings.concatLines (build_exec_lines cfg.sway.autolaunch)) (lib.strings.concatLines (build_exec_lines cfg.sway.autolaunch))
cfg.sway.extraConfig cfg.sway.extraConfig
]); ];
sway_conf = pkgs.writeText "sway.conf" text;
in with cfg; lib.mkIf (enable && sway.enable) { in with cfg; lib.mkIf (enable && sway.enable) {
environment.etc."sway.conf" = { environment.etc."sway.conf" = {
source = sway_conf; source = sway_conf;
@ -39,9 +41,11 @@ do
fi fi
done done
''; '';
reloadTriggers = [ sway_conf ]; reloadTriggers = [ text ];
}; };
programs.waybar.enable = true;
programs.sway = { programs.sway = {
enable = true; enable = true;
wrapperFeatures = { wrapperFeatures = {
@ -54,7 +58,6 @@ done
swayidle swayidle
wl-clipboard wl-clipboard
wf-recorder wf-recorder
waybar
dmenu dmenu
wmenu wmenu
]; ];