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
|
||||
];
|
||||
};
|
||||
|
||||
"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 = [
|
||||
./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"
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
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 = [
|
||||
./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 = [
|
||||
users.users.yt.extraGroups = [
|
||||
"wheel"
|
||||
"libvirtd"
|
||||
"docker"
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
tmux
|
||||
|
|
Loading…
Add table
Reference in a new issue