From 514a944f80af0d0117f08266609a99140f3b4031 Mon Sep 17 00:00:00 2001 From: Kyler Clay Date: Wed, 25 Sep 2024 01:37:09 -0400 Subject: [PATCH] fixed file conflicts --- glasshouse-desktop/configuration.nix | 4 ++ .../dotfiles/packages/theme/cursor/flake.nix | 39 +++++++++++++++++++ glasshouse-desktop/home.nix | 5 ++- glasshouse-desktop/modules/zshell.nix | 14 ++++++- 4 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 glasshouse-desktop/dotfiles/packages/theme/cursor/flake.nix diff --git a/glasshouse-desktop/configuration.nix b/glasshouse-desktop/configuration.nix index 618e014..fce9b40 100644 --- a/glasshouse-desktop/configuration.nix +++ b/glasshouse-desktop/configuration.nix @@ -12,11 +12,13 @@ networking = { networkmanager.enable = true; # Easiest to use and most distros use this by default. + hostName = "glasshouse"; hosts = { "192.168.1.163" = [ "glasshouse.info" ]; }; }; + time.timeZone = "America/New_York"; i18n.defaultLocale = "en_US.UTF-8"; @@ -47,6 +49,7 @@ environment.systemPackages = with pkgs; [ parted vim + gnumake wget alsa-utils alsa-lib @@ -84,6 +87,7 @@ hyprland-workspaces hyprland htop + mpd inetutils fzf feh diff --git a/glasshouse-desktop/dotfiles/packages/theme/cursor/flake.nix b/glasshouse-desktop/dotfiles/packages/theme/cursor/flake.nix new file mode 100644 index 0000000..125907e --- /dev/null +++ b/glasshouse-desktop/dotfiles/packages/theme/cursor/flake.nix @@ -0,0 +1,39 @@ +{ + description = "Flake Boilerplate"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs, ... }@inputs: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in { + packages.${system} = { + default = pkgs.stdenv.mkDerivation { + pname = "hackneyed-cursors"; + version = "0.9.2"; + + src = pkgs.fetchFromGitHub { + owner = "Enthymeme"; + repo = "hackneyed-x11-cursors"; + rev = "master"; + sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAA="; + }; + + buildInputs = with pkgs; [ + imagemagick + inkscape + make + bash + xorg.xcursorgen + ]; + + buildPhase = '' + ./build-all-themes.sh --dark-theme-only -j dist.large + ''; + }; + }; + }; +} diff --git a/glasshouse-desktop/home.nix b/glasshouse-desktop/home.nix index a884934..3e25017 100644 --- a/glasshouse-desktop/home.nix +++ b/glasshouse-desktop/home.nix @@ -18,7 +18,7 @@ # release notes. home.stateVersion = "24.05"; # Please read the comment before changing. - +# hi # The home.packages option allows you to install Nix packages into your # environment. home.packages = with pkgs; [ @@ -28,8 +28,8 @@ rofi starship ranger - firefox zathura + firefox yt-dlp vlc spotify @@ -68,5 +68,6 @@ }; # Let Home Manager install and manage itself. + programs.zsh.enable = true; programs.home-manager.enable = true; } diff --git a/glasshouse-desktop/modules/zshell.nix b/glasshouse-desktop/modules/zshell.nix index cb0429c..58902d7 100644 --- a/glasshouse-desktop/modules/zshell.nix +++ b/glasshouse-desktop/modules/zshell.nix @@ -43,7 +43,6 @@ navhelp = "navhelp | less"; svc = "systemctl --user"; hmswitch = "home-manager switch"; - nixswitch = "sudo nixos-rebuild switch --flake $HOME/sysflakes#glasshouse"; hmconf = "nvim $HOME/sysflakes/glasshouse-desktop/home.nix"; nixconf = "nvim $HOME/sysflakes/glasshouse-desktop/configuration.nix"; }; @@ -195,6 +194,19 @@ screengrab() { fi grimblast save area $name } + +nixswitch() { + cd $HOME/sysflakes + gen=$(readlink /nix/var/nix/profiles/system | sed 's/.*system-\([0-9]*\)-link/\1/') + gen=$((gen + 1)) + git diff --cached --quiet + if [ $? = 0 ]; then + git add . + git commit -m "Commit for generation $gen" + git push + fi + sudo nixos-rebuild switch --flake $HOME/sysflakes#glasshouse +} ''; initExtraBeforeCompInit = ''