From aba9538d4e1082ee5a75d5355a92fda0d6dd014a Mon Sep 17 00:00:00 2001 From: hive Date: Sat, 1 Jul 2023 04:21:17 +0000 Subject: [PATCH] status --- default.nix | 75 +++++++++++++++++++++++++++++++++++++++++++++++++ home.nix | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 156 insertions(+) create mode 100644 default.nix create mode 100644 home.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..dab6ce0 --- /dev/null +++ b/default.nix @@ -0,0 +1,75 @@ +{ ... } : +# . + . . . . . . +# . . . * +# . * . . . . . . + . +# . . + . . . +# . . . . . . . +# . . . +. + . +# . . . . +# . . . * . . . . + . +# + . . . + +# . . + .+. .. * +# .   。   •   ゚  。   . + +#   .     .    。   。 . . . . . +# .  。     ඞ 。 .   • . . + + +#   ゚  Hive was an Impostor + . +#  '   2 Impostors remain + .+.    •  +#  ゚   .  . ,   .  . , +   .  +# . . . + . . . + .+. . +# . . . . . . . . ! / +# * . . . + . . - O - +# . . . + . . * . . / | +# . + . . . .. + . +# . . . . * . * . +.. . * +# . . . . . . . . + . . + +{ + services.syncthing = { + enable = true; + user = "hive"; + configDir = "/home/hive/.config/syncthing"; + overrideDevices = false; + overrideFolders = false; + devices = { "impostor" = { + id = "XBG44HU-OVOC6RN-4DHMDRH-WPL7OPW-XBYYOMK-DV5GGGA-LEP6HCJ-QVPMSAI"; + introducer = true; + }; }; + folders = { + "ssh" = { + id = "mkkgo-chqwk"; + path = "~/.ssh"; + devices = [ "impostor" ]; + ignorePerms = false; + }; + "decsync" = { + id = "20lk1-ims07"; + path = "~/.local/share/decsync"; + devices = [ "impostor" ]; + }; + "scripts" = { + id = "6nunu-quun5"; + path = "~/.local/bin/scripts"; + devices = [ "impostor" ]; + }; + "dotfiles" = { + id = "sjgew-vdpfl"; + path = "~/.dotfiles"; + devices = [ "impostor" ]; + }; + "password-store" = { + id = "tadwa-1va0d"; + path = "~/.local/share/pass"; + devices = [ "impostor" ]; + }; + "notes" = { + id = "y0a00-2ha8l"; + path = "~/Notes"; + devices = [ "impostor" ]; + }; + "documents" = { + id = "y7ecb-v9ds7"; + path = "~/Documents"; + devices = [ "impostor" ]; + }; + }; + }; +} diff --git a/home.nix b/home.nix new file mode 100644 index 0000000..bb88807 --- /dev/null +++ b/home.nix @@ -0,0 +1,81 @@ +# all my home stuff :3 +sysConf: { config, pkgs, lib, ... }: +{ + home.sessionVariables = { + # system configuration + EDITOR = "nvim"; + + # cleanup homedir + CARGO_HOME = "${config.xdg.dataHome}/cargo"; + + # fish config + fish_greeting = "✨️ heya ${sysConf.user}, welcome to ${sysConf.prettyHost} ~"; + }; + # installing my packages uvu + home.packages = with pkgs; [ + bat + diceware + pwgen + kitty + schildichat-desktop + dino + mangohud + termpdfpy + lollypop + skim + syncthing + armcord + ripgrep + tmate + btop + firefox + apostrophe + warp + syncplay + mpv + wl-clipboard + adw-gtk3 + # some bullshit to get gnome apps to install withotu a prefix + ] ++ (with pkgs.gnome; with pkgs.gnomeExtensions; [ + gnome-tweaks + dconf-editor + night-theme-switcher + rounded-window-corners + appindicator + ]); + + # configure programs + programs.home-manager.enable = true; + programs.fish = { + enable = true; + shellAbbrs = { + nxs = "nix search nixpkgs"; + nxr = "nix run nixpkgs#"; + nxsh = "nix shell nixpkgs#"; + e = "edit"; + nxb = "sudo nixos-rebuild switch"; + nxu = "sudo nixos-rebuild boot --upgrade"; + nxc = "sudo nix-collect-garbage -d"; + }; + interactiveShellInit = '' +fish_add_path ~/.local/bin +fish_add_path ~/.local/bin/scripts +fish_add_path ~/.local/share/cargo/bin +fish_add_path /var/lib/flatpak/exports/bin +fish_vi_key_bindings +''; + }; + programs.password-store = { + enable = true; + package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]); + settings = { + PASSWORD_STORE_DIR = "${config.xdg.dataHome}/pass"; + PASSWORD_STORE_CLIP_TIME = "60"; + }; + }; + programs.browserpass.enable = true; + programs.gpg.enable = true; + + # don't uh, change this or something might break lol idk + home.stateVersion = "22.11"; +}