working flake-parts

This commit is contained in:
Charlie Root 2024-07-21 21:58:18 +02:00
commit 35e6b01a56
15 changed files with 243 additions and 88 deletions

View file

@ -1,6 +1,6 @@
{
config,
inputs,
inputs',
lib,
pkgs,
...
@ -16,7 +16,7 @@ in {
home-manager.users.${username} = {
services.dunst = {
enable = true;
package = inputs.nixpkgs-wayland.packages.${pkgs.system}.dunst;
package = inputs'.nixpkgs-wayland.packages.dunst;
settings = {
global = {
monitor = 1;

View file

@ -1,6 +1,6 @@
{
config,
inputs,
inputs',
lib,
pkgs,
...
@ -25,10 +25,10 @@ with lib; let
#exec-once=[workspace 1;fullscreen;noanim] ${
pkgs.greetd.${cfg.greeter}
}/bin/${cfg.greeter} -l; ${
inputs.hyprland.packages.${pkgs.system}.hyprland
inputs'.hyprland.packages.hyprland
}/bin/hyprctl dispatch exit
#exec-once=${
inputs.hyprland.packages.${pkgs.system}.hyprland
inputs'.hyprland.packages.hyprland
}/bin/hyprctl dispatch focuswindow ${cfg.greeter}
'';
in {
@ -49,7 +49,7 @@ in {
enable = true;
settings.default_session = {
command = "${
inputs.hyprland.packages.${pkgs.system}.hyprland
inputs'.hyprland.packages.hyprland
}/bin/Hyprland --config ${hyprlandConfig}";
user = username;
};

View file

@ -9,6 +9,14 @@ with lib; let
inherit (config.modules.other.system) username;
in {
options.modules.programs.ssh.enable = mkEnableOption "ssh";
config = mkIf cfg.enable {programs.ssh = {startAgent = true;};};
config = {
programs.ssh.startAgent = true;
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
};
}