Skip to content

Commit

Permalink
The Part Where He Kills You
Browse files Browse the repository at this point in the history
  • Loading branch information
oomfiee committed Nov 13, 2024
1 parent 4723b80 commit ec6584f
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 35 deletions.
2 changes: 0 additions & 2 deletions Modules/Home/Core/Shell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
#./nushell.nix
./ssh.nix
];

programs.fish.enable = true;
}

28 changes: 20 additions & 8 deletions Modules/Home/Core/Shell/ssh.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
{ pkgs, config, lib, ... }:
{
# // Enable SSHFS service //
services.openssh.allowSFTP = true;
services.openssh.enable = true;
services = {
openssh = {
enable = true;
allowSFTP = true;
ports = [ 22 ];
settings = {
PasswordAuthentication = false;
AllowUsers = null; # Allows all users by default. Can be [ "user1" "user2" ]
UseDns = true;
X11Forwarding = false;
PermitRootLogin = "no"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no"
};
};
autofs = {
enable = true;
autoMaster = ''
'';
};
};

systemd.services.autofs.path = [ pkgs.sshfs ];
services.autofs = {
enable = true;
autoMaster = ''
'';
};
}
24 changes: 14 additions & 10 deletions Modules/Home/Users/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,21 @@
time.timeZone = systemSettings.timezone;

# Note this is still broken please check if it is fixed
# services.localtimed.enable = true;
# services.automatic-timezoned.enable = true;
# location.provider = "geoclue2";
# services.geoclue2.geoProviderUrl = "https://beacondb.net/v1/geolocate";
i18n.defaultLocale = systemSettings.locale;
# services = {
# localtimed.enable = true;
# automatic-timezoned.enable = true;
# geoclue2.geoProviderUrl = "https://beacondb.net/v2/geolocate";
# };

# location.provider = "geoclue2";

i18n.defaultLocale = systemSettings.locale;

system.stateVersion = "24.11"; # Did you read the comment? - no i did not
system.stateVersion = "24.11"; # Did you read the comment? - no i did not

users.users.root.hashedPassword = "!";
users.users.root.shell = pkgs.shadow; # Disable root login
users.users.root.hashedPassword = "!";
users.users.root.shell = pkgs.shadow; # Disable root login

services.homed.enable = true;
services.nscd.enable = true;
services.homed.enable = true;
services.nscd.enable = true;
}
2 changes: 2 additions & 0 deletions Modules/Home/Users/oomfie/users.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
extraGroups = [ "networkmanager" "wheel" "scanner" "lp" "audio" "docker" ];
shell = pkgs.${userSettings.sh};
};

programs.fish.enable = true;
}
14 changes: 7 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ inputs = {
};
};

# nixConfig = {
# extra-substituters = [
# "domain"
# ];
# extra-trusted-public-keys = [
# "randomash:212"
# ];
# };
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org/"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};


outputs = { self, nixpkgs, nixpkgs-stable, home-manager, arkenfox, lobster, stylix, nixos-generators, lix-module, nix-minecraft, nixos-cosmic, umu, lanzaboote, ... } @ inputs:
Expand Down

0 comments on commit ec6584f

Please sign in to comment.