titan doesn't need a home

This commit is contained in:
cy 2024-12-30 18:06:16 -05:00
parent 0a2eebfabc
commit 69dd25c579
7 changed files with 24 additions and 75 deletions

View file

@ -7,8 +7,9 @@
}:
{
imports = [
./hardware-configuration.nix
../common.nix
../yt.nix
./hardware-configuration.nix
./gitlab.nix
./borg.nix
./rclone.nix
@ -150,7 +151,6 @@
};
users.users.yt = {
isNormalUser = true;
extraGroups = [
"wheel"
"networkmanager"

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ ... }:
{
nix = {
settings = {
@ -24,13 +24,7 @@
# this is true by default and mutually exclusive with
# programs.nix-index
programs.command-not-found.enable = false;
programs.nix-index.enable = false;
users.users.yt.shell = pkgs.zsh;
programs.zsh.enable = true;
# needed for zsh.enableCompletion to work
environment.pathsToLink = [ "/share/zsh" ];
programs.nix-index.enable = false; # set above to false to use this
# see journald.conf(5)
services.journald.extraConfig = "MaxRetentionSec=2d";

View file

@ -44,25 +44,11 @@
system.stateVersion = "24.05";
environment.systemPackages = map lib.lowPrio [
pkgs.curl
pkgs.gitMinimal
environment.systemPackages = with pkgs; [
curl
git
];
users.users.yt = {
isNormalUser = true;
extraGroups = [
"wheel"
"networkmanager"
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPdhAQYy0+vS+QmyCd0MAbqbgzyMGcsuuFyf6kg2yKge yt@ytlinux"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINyn2+OoRN4nExti+vFQ1NHEZip0slAoCH9C5/FzvgZD yt@ytnix"
];
};
security.sudo.enable = true;
security.sudo.wheelNeedsPassword = false;
# network stuff
networking.hostName = "titan";
networking.networkmanager.enable = true;

11
hosts/yt.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs, ... }:
{
users.users.yt = {
isNormalUser = true;
shell = pkgs.zsh;
};
programs.zsh.enable = true;
# needed for zsh.enableCompletion to work
environment.pathsToLink = [ "/share/zsh" ];
}

View file

@ -8,6 +8,7 @@
imports = [
./hardware-configuration.nix
../common.nix
../yt.nix
{
disabledModules = [
"services/backup/borgbackup.nix"
@ -121,14 +122,11 @@
services.libinput.enable = true;
users.users.yt = {
isNormalUser = true;
extraGroups = [
"wheel"
"libvirtd"
"docker"
];
};
users.users.yt.extraGroups = [
"wheel"
"libvirtd"
"docker"
];
environment.systemPackages = with pkgs; [
tmux