...
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ pkgs, secretsDir, inputs, config, self, ... }:
|
||||
{ pkgs, secretsDir, inputs, config, self, lib, ... }:
|
||||
{
|
||||
users.users.me = {
|
||||
isNormalUser = true;
|
||||
@@ -7,13 +7,13 @@
|
||||
extraGroups = [ "networkmanager" "wheel" "libvirtd" ]; # Enable ‘sudo’ for the user.
|
||||
};
|
||||
|
||||
#home-manager._module.args = { inherit inputs; };
|
||||
home-manager.users.me = import ./home.nix;
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit self;
|
||||
hostname = config.networking.hostName;
|
||||
};
|
||||
|
||||
home-manager.users.me = import ./home.nix;
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
hack-font
|
||||
];
|
||||
|
||||
17
users/me/headless.nix
Normal file
17
users/me/headless.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ self, config, ... }:
|
||||
{
|
||||
users.users.me = {
|
||||
isNormalUser = true;
|
||||
#passwordFile = "${secretsDir}/me-pwd";
|
||||
password = "changeme";
|
||||
extraGroups = [ "networkmanager" "wheel" "libvirtd" ]; # Enable ‘sudo’ for the user.
|
||||
};
|
||||
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit self;
|
||||
hostname = config.networking.hostName;
|
||||
};
|
||||
|
||||
home-manager.users.me = import ./home-headless.nix;
|
||||
|
||||
}
|
||||
78
users/me/home-headless.nix
Normal file
78
users/me/home-headless.nix
Normal file
@@ -0,0 +1,78 @@
|
||||
{ config, pkgs, self, secretsDir, inputs, persistentDir, ... }:
|
||||
{
|
||||
# The home.stateVersion option does not have a default and must be set
|
||||
home.stateVersion = "23.05";
|
||||
|
||||
imports = [
|
||||
inputs.nix-index-database.hmModules.nix-index
|
||||
|
||||
# all my headless programms with their own config
|
||||
../../programs/git.nix
|
||||
../../programs/lf/default.nix
|
||||
../../programs/bash.nix
|
||||
../../programs/ssh.nix
|
||||
../../programs/neovim.nix
|
||||
];
|
||||
|
||||
programs.nix-index.enable = false;
|
||||
programs.nix-index.enableBashIntegration = false;
|
||||
programs.nix-index.enableZshIntegration = false;
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
home.sessionPath = [ "${self}/mybin" ];
|
||||
home.file = {
|
||||
".rclone.conf".source = config.lib.file.mkOutOfStoreSymlink "${secretsDir}/rclone-conf";
|
||||
".subversion/config".text = ''
|
||||
[miscellany]
|
||||
global-ignores = node_modules target
|
||||
''; # documentation for this config file: https://svnbook.red-bean.com/en/1.7/svn.advanced.confarea.html
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
vim
|
||||
tree
|
||||
htop
|
||||
subversion
|
||||
pv
|
||||
nodejs
|
||||
neofetch
|
||||
file
|
||||
lshw
|
||||
zip
|
||||
unzip
|
||||
arp-scan
|
||||
lolcat
|
||||
comma
|
||||
delta
|
||||
jq
|
||||
wget
|
||||
tmux
|
||||
# python....
|
||||
(python310.withPackages (p: with p; [
|
||||
pandas
|
||||
click
|
||||
click-aliases
|
||||
]))
|
||||
(busybox.overrideAttrs (final: prev: {
|
||||
# get only nslookup from busybox
|
||||
# because the less would overwrite the actuall less and the busybox does not have -r
|
||||
# it's a pfusch, but it works
|
||||
postInstall = prev.postInstall + ''
|
||||
echo ============ removing anything but nslookup ============
|
||||
mv $out/bin/nslookup $out/nslookup
|
||||
mv $out/bin/busybox $out/busybox
|
||||
|
||||
rm $out/bin/*
|
||||
|
||||
mv $out/nslookup $out/bin/nslookup
|
||||
mv $out/busybox $out/bin/busybox
|
||||
'';
|
||||
}))
|
||||
];
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -2,28 +2,16 @@
|
||||
{ config, pkgs, self, secretsDir, inputs, persistentDir, ... }:
|
||||
|
||||
{
|
||||
# The home.stateVersion option does not have a default and must be set
|
||||
home.stateVersion = "23.05";
|
||||
|
||||
imports = [
|
||||
inputs.nix-index-database.hmModules.nix-index
|
||||
./home-headless.nix
|
||||
|
||||
# all my programms with their own config
|
||||
../../programs/git.nix
|
||||
../../programs/lf/default.nix
|
||||
# my gui programs
|
||||
../../programs/alacritty.nix
|
||||
../../programs/bash.nix
|
||||
../../programs/emacs/default.nix
|
||||
../../programs/rofi/default.nix
|
||||
../../programs/zathura.nix
|
||||
../../programs/ssh.nix
|
||||
../../programs/neovim.nix
|
||||
];
|
||||
|
||||
programs.nix-index.enable = false;
|
||||
programs.nix-index.enableBashIntegration = false;
|
||||
programs.nix-index.enableZshIntegration = false;
|
||||
|
||||
gtk.cursorTheme = {
|
||||
name = "Yaru";
|
||||
};
|
||||
@@ -37,110 +25,64 @@
|
||||
|
||||
services.dunst.enable = true;
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
home.sessionPath = [ "${self}/mybin" ];
|
||||
|
||||
home.file = {
|
||||
".rclone.conf".source = config.lib.file.mkOutOfStoreSymlink "${secretsDir}/rclone-conf";
|
||||
".subversion/config".text = ''
|
||||
[miscellany]
|
||||
global-ignores = node_modules target
|
||||
''; # documentation for this config file: https://svnbook.red-bean.com/en/1.7/svn.advanced.confarea.html
|
||||
".mysecrets/root-pwd".text = "changeme";
|
||||
".mysecrets/me-pwd".text = "changeme";
|
||||
|
||||
".mozilla/firefox".source = config.lib.file.mkOutOfStoreSymlink "${persistentDir}/firefox";
|
||||
".cache/rofi-3.runcache".source = config.lib.file.mkOutOfStoreSymlink "${persistentDir}/rofi-run-cache";
|
||||
|
||||
};
|
||||
|
||||
|
||||
home.packages = with pkgs; [
|
||||
vim
|
||||
|
||||
# packages that i might not need everywhere??
|
||||
wstunnel
|
||||
rclone
|
||||
playerctl
|
||||
alsa-utils
|
||||
usbutils
|
||||
android-tools
|
||||
android-studio
|
||||
moonlight-qt
|
||||
pciutils
|
||||
jmtpfs
|
||||
pmutils
|
||||
cntr
|
||||
nil
|
||||
|
||||
|
||||
# gui packages
|
||||
obsidian
|
||||
tree
|
||||
xorg.xkbcomp
|
||||
haskellPackages.xmonad-extras
|
||||
haskellPackages.xmonad-contrib
|
||||
xorg.xev
|
||||
htop
|
||||
subversion
|
||||
pv
|
||||
blueman
|
||||
pavucontrol
|
||||
spotify
|
||||
flameshot
|
||||
nodejs
|
||||
neofetch
|
||||
networkmanagerapplet
|
||||
haskellPackages.xmobar
|
||||
dolphin
|
||||
mupdf
|
||||
xclip
|
||||
rclone
|
||||
stalonetray
|
||||
killall
|
||||
nil
|
||||
file
|
||||
wstunnel
|
||||
playerctl
|
||||
alsa-utils
|
||||
usbutils
|
||||
pciutils
|
||||
lshw
|
||||
jmtpfs
|
||||
pmutils
|
||||
cntr
|
||||
signal-desktop
|
||||
element-desktop
|
||||
discord
|
||||
wireshark
|
||||
zip
|
||||
unzip
|
||||
arp-scan
|
||||
gparted
|
||||
lolcat
|
||||
android-tools
|
||||
moonlight-qt
|
||||
comma
|
||||
delta
|
||||
jq
|
||||
xorg.xkill
|
||||
wget
|
||||
xorg.xmodmap
|
||||
tmux
|
||||
android-studio
|
||||
|
||||
# my own packages
|
||||
supabase-cli
|
||||
|
||||
inputs.firefox.packages.${pkgs.system}.firefox-nightly-bin
|
||||
|
||||
# python....
|
||||
(python310.withPackages (p: with p; [
|
||||
pandas
|
||||
click
|
||||
click-aliases
|
||||
]))
|
||||
|
||||
(busybox.overrideAttrs (final: prev: {
|
||||
# get only nslookup from busybox
|
||||
# because the less would overwrite the actuall less and the busybox does not have -r
|
||||
# it's a pfusch, but it works
|
||||
postInstall = prev.postInstall + ''
|
||||
echo ============ removing anything but nslookup ============
|
||||
mv $out/bin/nslookup $out/nslookup
|
||||
mv $out/bin/busybox $out/busybox
|
||||
|
||||
rm $out/bin/*
|
||||
|
||||
mv $out/nslookup $out/bin/nslookup
|
||||
mv $out/busybox $out/bin/busybox
|
||||
'';
|
||||
}))
|
||||
|
||||
# base-devel
|
||||
gcc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user