titan doesn't need a home
This commit is contained in:
parent
0a2eebfabc
commit
69dd25c579
7 changed files with 24 additions and 75 deletions
|
@ -145,14 +145,6 @@
|
||||||
./home/yt/chunk.nix
|
./home/yt/chunk.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
"yt@titan" = home-manager.lib.homeManagerConfiguration {
|
|
||||||
pkgs = pkgsFor.x86_64-linux;
|
|
||||||
extraSpecialArgs = { inherit inputs outputs; };
|
|
||||||
modules = [
|
|
||||||
./home/yt/titan.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./common.nix
|
|
||||||
];
|
|
||||||
home = {
|
|
||||||
username = "yt";
|
|
||||||
homeDirectory = "/home/yt";
|
|
||||||
stateVersion = "24.05";
|
|
||||||
};
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
|
|
||||||
systemd.user.startServices = "sd-switch";
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
lua-language-server
|
|
||||||
vim-language-server
|
|
||||||
python312Packages.python-lsp-server
|
|
||||||
nixd
|
|
||||||
gopls
|
|
||||||
bash-language-server
|
|
||||||
llvmPackages_19.clang-tools
|
|
||||||
rust-analyzer
|
|
||||||
yt-dlp
|
|
||||||
gnumake
|
|
||||||
btop
|
|
||||||
foot.terminfo
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -7,8 +7,9 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
|
||||||
../common.nix
|
../common.nix
|
||||||
|
../yt.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
./gitlab.nix
|
./gitlab.nix
|
||||||
./borg.nix
|
./borg.nix
|
||||||
./rclone.nix
|
./rclone.nix
|
||||||
|
@ -150,7 +151,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.yt = {
|
users.users.yt = {
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel"
|
"wheel"
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -24,13 +24,7 @@
|
||||||
# this is true by default and mutually exclusive with
|
# this is true by default and mutually exclusive with
|
||||||
# programs.nix-index
|
# programs.nix-index
|
||||||
programs.command-not-found.enable = false;
|
programs.command-not-found.enable = false;
|
||||||
programs.nix-index.enable = false;
|
programs.nix-index.enable = false; # set above to false to use this
|
||||||
|
|
||||||
users.users.yt.shell = pkgs.zsh;
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
# needed for zsh.enableCompletion to work
|
|
||||||
environment.pathsToLink = [ "/share/zsh" ];
|
|
||||||
|
|
||||||
# see journald.conf(5)
|
# see journald.conf(5)
|
||||||
services.journald.extraConfig = "MaxRetentionSec=2d";
|
services.journald.extraConfig = "MaxRetentionSec=2d";
|
||||||
|
|
|
@ -44,25 +44,11 @@
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
|
||||||
environment.systemPackages = map lib.lowPrio [
|
environment.systemPackages = with pkgs; [
|
||||||
pkgs.curl
|
curl
|
||||||
pkgs.gitMinimal
|
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
|
# network stuff
|
||||||
networking.hostName = "titan";
|
networking.hostName = "titan";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
11
hosts/yt.nix
Normal file
11
hosts/yt.nix
Normal 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" ];
|
||||||
|
}
|
|
@ -8,6 +8,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../common.nix
|
../common.nix
|
||||||
|
../yt.nix
|
||||||
{
|
{
|
||||||
disabledModules = [
|
disabledModules = [
|
||||||
"services/backup/borgbackup.nix"
|
"services/backup/borgbackup.nix"
|
||||||
|
@ -121,14 +122,11 @@
|
||||||
|
|
||||||
services.libinput.enable = true;
|
services.libinput.enable = true;
|
||||||
|
|
||||||
users.users.yt = {
|
users.users.yt.extraGroups = [
|
||||||
isNormalUser = true;
|
"wheel"
|
||||||
extraGroups = [
|
"libvirtd"
|
||||||
"wheel"
|
"docker"
|
||||||
"libvirtd"
|
];
|
||||||
"docker"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
tmux
|
tmux
|
||||||
|
|
Loading…
Add table
Reference in a new issue