kardorf: more migration from nixos to home-manager

This commit is contained in:
2024-03-18 15:09:36 +01:00
parent 4f0fe50d0a
commit fdd53faa62
9 changed files with 261 additions and 279 deletions

View File

@ -2,10 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ lib, inputs, config, pkgs, ... }:
let python-packages = ps: with ps; [ ];
in rec {
{ lib, inputs, config, pkgs, ... }: {
imports = [ ./hardware-configuration.nix ];
nix.buildMachines = [{
@ -97,19 +94,13 @@ in rec {
xterm.enable = false;
xfce = {
enable = true;
# noDesktop = true;
# enableXfwm = false;
noDesktop = true;
enableXfwm = false;
};
};
services.xserver.displayManager.defaultSession = "none+i3";
services.xserver.windowManager.i3.enable = true;
services.xserver.windowManager.i3.package = pkgs.i3-gaps;
services.xserver.windowManager.i3.extraPackages = with pkgs; [
rofi
i3lock
i3status-rust
nitrogen
];
# Configure keymap in X11
services.xserver = {
@ -156,26 +147,14 @@ in rec {
group = "julian";
shell = pkgs.zsh;
extraGroups = [ "networkmanager" "wheel" "docker" ];
packages = with pkgs; [
hunspell
hunspellDicts.de_DE
hunspellDicts.en_US
makemkv
audacity
gnome.cheese
zoom-us
qutebrowser
unetbootin
# For SSS exercises
pwndbg
gcc
hexedit
];
packages = with pkgs; [ ]; # Using home-manager instead
};
home-manager.useGlobalPkgs =
true; # make overlays for nixpkgs work for home-manager, not only the system
programs.zsh.enable = true;
programs.nix-ld.enable = true;
users.groups.julian = { gid = 1000; };
@ -194,11 +173,8 @@ in rec {
"${pkgs.xfce.xfce4-notifyd}/lib/xfce4/notifyd/xfce4-notifyd";
environment.etc."manual-links/polkit-gnome-authentication-agent-1".source =
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
environment.pathsToLink = [ "/share/nix-direnv" ];
environment.shells = with pkgs; [ zsh ]; # adds zsh to /etc/shells
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = false;
@ -223,172 +199,8 @@ in rec {
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# rfid reader tests
openct
opensc
pcsclite
pcsctools
ccid
libnfc
xournalpp
path-of-building
xfce.thunar-archive-plugin
zip
p7zip
imagemagick
(pkgs.python3.withPackages python-packages)
firefox
thunderbird
nextcloud-client
qalculate-gtk
libqalculate
schildichat-desktop
tdesktop
tealdeer
gcolor2 # gcolor3 does not work
vim
neovim
# cups
wget
gparted
emacs
nodejs
git
dotter
mc
broot
rnr # renaming tool in rust
doublecmd
mucommander
tree
alacritty
wezterm
kitty
starship
zsh
bat
ripgrep
fd
fzf
topgrade
cargo
# rust-analyzer
# rustfmt
arandr
wireguard-tools
htop
texlive.combined.scheme-full
texlab
usbutils # lsusb
pciutils # lspci
nixfmt
gnome.gnome-keyring
gnome.seahorse
polkit_gnome
nix-index
python3
black
libnotify
libclang
libreoffice
killall
findutils
xorg.xkill
unzip
vlc
direnv
nix-direnv
handbrake
nmap
jq
jdk
# emacsPackages.clang-format # formatting for java
gradle
maven
android-tools
scrcpy
dvdisaster
mate.engrampa
# toybox
unixtools.procps
qpdfview
ffmpeg
links2
julia-bin
xdg-desktop-portal-gtk
discord
lnav # log analyzing tool
fdupes # find and delete duplicate files
digikam
dbeaver
pavucontrol
sqlite
nomacs
rocketchat-desktop
# zotero
inkscape
pulseaudio
gcolor3
geogebra
languagetool
xclip
okular # Pdf reader with many features, good for commenting documents
evince # Simple pdf reader, good for focusing on document content
pdfsam-basic # Split, merge, etc for pdfs
poppler_utils # Pdf utils including pdfimages
matlab # Using nix-matlab overlay defined in flake
# sage
gimp
devbox
parted
drawio
du-dust # Like du tree but better
gnupg
rpi-imager
wine
winetricks
lf
rustdesk
realvnc-vnc-viewer
calibre
audible-cli
cudaPackages.cudatoolkit
openmvg
colmapWithCuda
];
# nixpkgs.overlays = [
# (self: super: {
# nix-direnv = super.nix-direnv.override { enableFlakes = true; };
# })
#];
fonts.fonts = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; })
font-awesome
dejavu_fonts
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
fira-code
fira-code-symbols
source-code-pro
];
# Packages needed as root
environment.systemPackages = with pkgs; [ vim htop mc home-manager ];
virtualisation.docker.enable = true;