From 8b5808da5e0ddf7d7a729dd4520518222073169c Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Sat, 15 Jun 2024 23:36:56 -0500 Subject: [PATCH] temp --- flake.nix | 7 +++ hosts/pi4/configuration.nix | 1 + hosts/pi4/home.nix | 115 ++++++++++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 hosts/pi4/home.nix diff --git a/flake.nix b/flake.nix index dc289bb..1555139 100644 --- a/flake.nix +++ b/flake.nix @@ -133,6 +133,13 @@ modules = [ nixos-hardware.nixosModules.raspberry-pi-4 ./hosts/pi4/configuration.nix + + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.matt = import ./hosts/pi4/home.nix; + } ]; }; }; diff --git a/hosts/pi4/configuration.nix b/hosts/pi4/configuration.nix index 04f6695..40a911b 100644 --- a/hosts/pi4/configuration.nix +++ b/hosts/pi4/configuration.nix @@ -23,6 +23,7 @@ in # Include the results of the hardware scan. ./hardware-configuration.nix ./docker-pi4.nix + ../default.nix ]; # Enable nix flakes and nix-command tools diff --git a/hosts/pi4/home.nix b/hosts/pi4/home.nix new file mode 100644 index 0000000..c23361a --- /dev/null +++ b/hosts/pi4/home.nix @@ -0,0 +1,115 @@ +{ pkgs, ... }: +# let +# gnome = false; +# in +{ + + home.username = "matt"; + home.homeDirectory = "/home/matt"; + home.stateVersion = "23.11"; + programs.home-manager.enable = true; + + programs = { + fish.enable = false; + mangohud.enable = true; + java.enable = true; + + zsh = { + enable = true; + enableCompletion = true; + autosuggestion.enable = true; + syntaxHighlighting.enable = true; + + shellAliases = { + ll = "ls -alh"; + update = "sudo nixos-rebuild switch"; + nas-update = "nixos-rebuild switch --use-remote-sudo --target-host admin@jallen-nas.local --build-host localhost --flake ~/nix-config/flake.nix#jallen-nas"; + nas-ssh = "ssh admin@jallen-nas.local"; + }; + + oh-my-zsh = { + enable = true; + plugins = [ "git" ]; + theme = "fishy"; + }; + }; + }; + + programs.git = { + enable = true; + userName = "mjallen18"; + userEmail = "matt.l.jallen@gmail.com"; + aliases = { + co = "checkout"; + ci = "commit"; + cia = "commit --amend"; + s = "status"; + st = "status"; + b = "branch"; + # p = "pull --rebase"; + pu = "push"; + }; + }; + + programs.command-not-found.enable = true; + + home.packages = with pkgs; [ + # gamescope # using chaotic git version + # gamescope-wsi # using chaotic git version + deadnix + firefox + freerdp + gamescope_git + gamescope-wsi_git + gnome.gnome-tweaks + gnomeExtensions.appindicator + gnomeExtensions.arcmenu + gnomeExtensions.dash-to-panel + gnomeExtensions.tiling-assistant + goverlay + heroic + lm_sensors + lutris + mangohud + morph + neofetch + nixfmt-rfc-style + orca-slicer + papirus-icon-theme + pop-gtk-theme + protonvpn-gui + protonvpn-gui + python3 + tree + virt-manager + vmware-horizon-client + vorta + ]; + + dconf = { + enable = false; + settings = { + "org/gnome/desktop/interface".clock-format = "12h"; + "org/gnome/desktop/interface".color-scheme = "prefer-dark"; + "org/gnome/desktop/interface".enable-hot-corners = false; + "org/gnome/desktop/interface".font-antialiasing = "grayscale"; + "org/gnome/desktop/interface".font-hinting = "slight"; + "org/gnome/desktop/interface".icon-theme = "Papirus-Dark"; + "org/gnome/desktop/peripherals/mouse".accel-profile = "flat"; + "org/gnome/desktop/peripherals/touchpad".two-finger-scrolling-enabled = true; + "org/gnome/desktop/peripherals/touchpad".tap-to-click = true; + "org/gnome/mutter".experimental-features = [ "scale-monitor-framebuffer" "variable-refresh-rate" ]; + "org/gnome/tweaks".show-extensions-notice = false; + "org/gnome/shell".enabled-extensions = [ + "appindicatorsupport@rgcjonas.gmail.com" + "arcmenu@arcmenu.com" + "user-theme@gnome-shell-extensions.gcampax.github.com" + "dash-to-panel@jderose9.github.com" + "tiling-assistant@leleat-on-github" + ]; + "org/gnome/shell/extensions/dash-to-panel".primary-monitor = 1; + "org/gnome/shell/extensions/dash-to-panel".multi-monitors = false; + "org/gtk/settings/file-chooser".clock-format = "12h"; + }; + }; +}