added ssh, removed unnecessary imports in flake.nix
This commit is contained in:
parent
77c4dfa742
commit
1b7ea9d9b0
5 changed files with 23 additions and 11 deletions
11
flake.nix
11
flake.nix
|
@ -36,19 +36,10 @@
|
||||||
url = "github:nix-community/fenix";
|
url = "github:nix-community/fenix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
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 = {
|
split-monitor-workspaces = {
|
||||||
url = "github:Duckonaut/split-monitor-workspaces";
|
url = "github:Duckonaut/split-monitor-workspaces";
|
||||||
inputs.hyprland.follows = "hyprland";
|
# inputs.hyprland.follows = "hyprland";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
vesktop.enable = true;
|
vesktop.enable = true;
|
||||||
|
ssh.enable = true;
|
||||||
btop.enable = true;
|
btop.enable = true;
|
||||||
mpv.enable = true;
|
mpv.enable = true;
|
||||||
i3.enable = true;
|
i3.enable = true;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
_: {
|
_: {
|
||||||
imports = [
|
imports = [
|
||||||
./pipewire.nix
|
./pipewire.nix
|
||||||
|
./ssh.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
16
modules/services/ssh.nix
Normal file
16
modules/services/ssh.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -10,7 +10,10 @@ networking = {
|
||||||
};
|
};
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
enable = true;
|
enable = true;
|
||||||
fallbackDns = ["9.9.9.9"];
|
fallbackDns = [
|
||||||
|
"9.9.9.9"
|
||||||
|
"2620::fe::fe"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
users.users.${username}.extraGroups = [ "networkmanager" ];
|
users.users.${username}.extraGroups = [ "networkmanager" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue