Compare commits

..

3 commits

Author SHA1 Message Date
Florian Schmitt
382936127b refact(config) : put cli stuff in console.nix 2023-11-29 10:17:07 +03:00
Florian Schmitt
5f2e97ca5a use vi for nix conf edit + jellij +fzf 2023-11-29 09:50:21 +03:00
Florian Schmitt
56b205370b fix(nas) : new ip 2023-11-29 09:49:32 +03:00
4 changed files with 44 additions and 16 deletions

View file

@ -26,10 +26,9 @@
{ device = "/dev/disk/by-uuid/37E1-D07F"; { device = "/dev/disk/by-uuid/37E1-D07F";
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems."/mnt/nas/music" = fileSystems."/mnt/nas/music" =
{ {
device = "192.168.1.9:/volume1/music"; device = "192.168.1.2:/volume1/music";
options = [ "nfsvers=4.2" "x-systemd.automount" "noauto" "rw" "relatime" "user" "acl" "defaults"]; options = [ "nfsvers=4.2" "x-systemd.automount" "noauto" "rw" "relatime" "user" "acl" "defaults"];
fsType = "nfs"; fsType = "nfs";
}; };
@ -87,4 +86,4 @@
RuntimeDirectorySize=8G RuntimeDirectorySize=8G
HandleLidSwitchDocked=ignore HandleLidSwitchDocked=ignore
''; '';
} }

View file

@ -20,7 +20,7 @@
shellAliases = { shellAliases = {
ls = "lsd --hyperlink=auto"; ls = "lsd --hyperlink=auto";
icat = "kitty +kitten icat"; icat = "kitty +kitten icat";
nixedit = "codium /etc/nixos"; nixedit = "vi /etc/nixos";
nixupdate = "sudo nix-channel --update && sudo nixos-rebuild switch"; nixupdate = "sudo nix-channel --update && sudo nixos-rebuild switch";
nixclean = "sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch && sudo nix-store --gc"; nixclean = "sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch && sudo nix-store --gc";
}; };
@ -44,6 +44,7 @@
dnsutils dnsutils
emacs-nox emacs-nox
findutils findutils
fzf
gnugrep gnugrep
gnumake gnumake
gnupg gnupg
@ -56,6 +57,7 @@
mc mc
micro micro
mosh mosh
mpd
neofetch neofetch
pandoc pandoc
pass pass
@ -69,6 +71,8 @@
wget wget
whois whois
wirelesstools wirelesstools
yt-dlp
zellij
zola zola
zsh-autosuggestions zsh-autosuggestions
]; ];

View file

@ -11,6 +11,15 @@ in
security.rtkit.enable = true; security.rtkit.enable = true;
services = { services = {
# sonarr = {
# enable = true;
# openFirewall = true; # http://locahost:8989
# };
# prowlarr = {
# enable = true;
# openFirewall = true; # http://locahost:9696
# };
#blueman.enable = true; #blueman.enable = true;
#openvpn.restartAfterSleep = false; #openvpn.restartAfterSleep = false;
openvpn.servers = { openvpn.servers = {
@ -36,7 +45,6 @@ in
xserver = { xserver = {
enable = true; enable = true;
#desktopManager.gnome.enable = true;
displayManager.defaultSession = "plasmawayland"; displayManager.defaultSession = "plasmawayland";
desktopManager.plasma5.enable = true; desktopManager.plasma5.enable = true;
displayManager.sddm.enable = true; displayManager.sddm.enable = true;
@ -44,12 +52,6 @@ in
}; };
dbus.enable = true; dbus.enable = true;
}; };
# xdg.portal = {
# enable = true;
# wlr.enable = true;
# # gtk portal needed to make gtk apps happy
# extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
# };
programs = { programs = {
chromium = { chromium = {
@ -72,13 +74,11 @@ in
]; ];
}; };
}; };
# dconf.enable = true;
droidcam.enable = true; droidcam.enable = true;
firefox.enable = true; firefox.enable = true;
firefox.languagePacks = ["fr"]; firefox.languagePacks = ["fr"];
hyprland.enable = true; hyprland.enable = true;
#kdeconnect.enable = true;
ssh.askPassword = pkgs.lib.mkForce "${pkgs.ksshaskpass.out}/bin/ksshaskpass"; # conflict between kde and gnome cf. https://github.com/NixOS/nixpkgs/issues/75867 ssh.askPassword = pkgs.lib.mkForce "${pkgs.ksshaskpass.out}/bin/ksshaskpass"; # conflict between kde and gnome cf. https://github.com/NixOS/nixpkgs/issues/75867
ssh.startAgent = true; ssh.startAgent = true;
steam.enable = true; steam.enable = true;
@ -103,11 +103,13 @@ in
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
''; '';
}; };
}; };
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# access to unstable nixpkgs
# nixpkgs.config = { # nixpkgs.config = {
# packageOverrides = pkgs: with pkgs; { # packageOverrides = pkgs: with pkgs; {
# unstable = import unstableTarball { # unstable = import unstableTarball {
@ -116,6 +118,7 @@ in
# }; # };
# }; # };
# no kde bloat
environment.plasma5.excludePackages = with pkgs.libsForQt5; [ environment.plasma5.excludePackages = with pkgs.libsForQt5; [
baloo baloo
elisa elisa
@ -124,6 +127,7 @@ in
oxygen oxygen
plasma-browser-integration plasma-browser-integration
]; ];
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -174,11 +178,11 @@ in
kitty-themes kitty-themes
latte-dock latte-dock
libreoffice-qt libreoffice-qt
librewolf
libsForQt5.ark libsForQt5.ark
libsForQt5.bismuth libsForQt5.bismuth
#mattermost-desktop #mattermost-desktop
mixxx mixxx
mpd
nextcloud-client nextcloud-client
obsidian obsidian
signal-desktop signal-desktop
@ -192,7 +196,6 @@ in
wofi wofi
mako # notification system developed by swaywm maintainer mako # notification system developed by swaywm maintainer
wdisplays # tool to configure displays wdisplays # tool to configure displays
yt-dlp
]; ];
# Do not restart the display manager automatically # Do not restart the display manager automatically

View file

@ -37,6 +37,28 @@
tls.useStartTls = true; tls.useStartTls = true;
}; };
}; };
"mrflos@mrflos.pw" = {
realName = "Florian Schmitt";
userName = "mrflos";
address = "mrflos@mrflos.pw";
primary = false;
thunderbird = {
enable = true;
};
imap = {
host = "mrflos.pw";
port = 993;
tls.enable = true;
tls.useStartTls = true;
};
smtp = {
host = "mrflos.pw";
port = 587;
tls.useStartTls = true;
};
};
"contact@yeswiki.pro" = { "contact@yeswiki.pro" = {
realName = "YesWiki.pro"; realName = "YesWiki.pro";
userName = "contact@yeswiki.pro"; userName = "contact@yeswiki.pro";