added ssh, removed unnecessary imports in flake.nix

This commit is contained in:
vali 2024-04-12 20:58:33 +02:00
commit 1b7ea9d9b0
5 changed files with 23 additions and 11 deletions

View file

@ -36,19 +36,10 @@
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprlock = {
url = "github:hyprwm/hyprlock";
inputs.nixpkgs.follows = "nixpkgs";
};
split-monitor-workspaces = {
url = "github:Duckonaut/split-monitor-workspaces";
inputs.hyprland.follows = "hyprland";
# inputs.hyprland.follows = "hyprland";
};
};
}

View file

@ -20,6 +20,7 @@
};
programs = {
vesktop.enable = true;
ssh.enable = true;
btop.enable = true;
mpv.enable = true;
i3.enable = true;

View file

@ -1,5 +1,6 @@
_: {
imports = [
./pipewire.nix
./ssh.nix
];
}

16
modules/services/ssh.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }
with lib; let
cfg = config.myOptions.programs.ssh;
username = config.myOptions.other.system.username;
in {
options.myOptions.programs.ssh.enable = mkEnableOption "ssh";
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.ssh = {
startAgent = true;
};
};
};
}

View file

@ -10,7 +10,10 @@ networking = {
};
services.resolved = {
enable = true;
fallbackDns = ["9.9.9.9"];
fallbackDns = [
"9.9.9.9"
"2620::fe::fe"
];
};
users.users.${username}.extraGroups = [ "networkmanager" ];
}