Added dell.nix for work laptop

This commit is contained in:
fleaz 2023-08-15 14:52:40 +02:00
parent 59bab9db3f
commit e8d0eec226
3 changed files with 17 additions and 27 deletions

View file

@ -15,3 +15,10 @@ nix-channel --update -v
Symlink `/etc/nixos/configuration.nix` to the corresponding Symlink `/etc/nixos/configuration.nix` to the corresponding
`machines/<hostname>/configuration.nix` entry and just keep using `machines/<hostname>/configuration.nix` entry and just keep using
*nixos-rebuild* like nothing happend. *nixos-rebuild* like nothing happend.
## My Dell work laptop
My employer gave me a laptop with Ubuntu installed and is not that happy with the idea of me running NixOS on it.
Therefore I at least installed Home-Manager in standalone mode on it and created the `dell.nix` that can be used by
symlinking it to `~/.config/home-manager/home.nix`.
This way I at least get recent versions of tools with all of my personal config for e.g. Neovim.

View file

@ -1,9 +1,14 @@
{ config, pkgs, ... }: { config
, pkgs
, ...
}:
{ {
imports = [ imports = [
modules/neovim.nix modules/neovim.nix
modules/git.nix modules/git.nix
modules/tmux.nix
../secrets/denic.nix
]; ];
home.username = "felix"; home.username = "felix";
@ -14,8 +19,6 @@
sensu-go-cli sensu-go-cli
kubectl kubectl
krew krew
tmux
tmuxPlugins.gruvbox
silver-searcher silver-searcher
fd fd
subversionClient subversionClient
@ -44,24 +47,16 @@
}; };
shellAliases = { shellAliases = {
"dl" = "ls -lhtr --color=always ~/Downloads | tail -n 10"; # Show the 10 newest Downloads "dl" = "ls -lhtr --color=always ~/Downloads | tail -n 10"; # Show the 10 newest Downloads
"notes" = "vim ~/denic/notes.md"; # Open my work notes
"buzzer" = "ssh -i Nextcloud/Privat/id_door door@door.w17.io buzzer"; "buzzer" = "ssh -i Nextcloud/Privat/id_door door@door.w17.io buzzer";
"k" = "kubectl"; "k" = "kubectl";
"windesk2" = "xfreerdp /u:felixb /w:1920 /h:1080 /v:w12243";
}; };
initExtra = '' initExtra = ''
export EDITOR="vim"; export EDITOR="nvim";
export PATH="$PATH:$HOME/.krew/bin:$HOME/bin:$HOME/go/bin"; export PATH="$PATH:$HOME/.krew/bin:$HOME/bin:$HOME/go/bin";
source <(kubectl completion zsh) source <(kubectl completion zsh)
''; '';
}; };
programs.git = {
enable = true;
userName = "fleaz";
userEmail = "mail@felixbreidenstein.de";
};
programs.foot = { programs.foot = {
enable = true; enable = true;
settings = { settings = {
@ -95,19 +90,7 @@
}; };
home.file = { }; home.file = { };
home.sessionVariables = { };
# You can also manage environment variables but you will have to manually
# source
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/felix/etc/profile.d/hm-session-vars.sh
#
# if you don't want to manage your shell through Home Manager.
home.sessionVariables = {
};
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;

@ -1 +1 @@
Subproject commit db7b25cfa5baa4cb1a83270756d76d27cbddce85 Subproject commit 5bb5db7a6e82331b2697c0b9fde910ffaca0f703