Commit for generation 62

This commit is contained in:
2024-09-25 02:47:44 -04:00
parent bf47231b4a
commit 4b5a6450b7
5 changed files with 101 additions and 55 deletions

View File

@@ -6,10 +6,11 @@
home-manager.url = "github:nix-community/home-manager"; home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
#glasshouse-desktop dots #glasshouse-desktop dots
desktop-utils.url = "path:/home/pagedmov/sysflakes/glasshouse-desktop/dotfiles"; nvim.url = "path:glasshouse-desktop/dotfiles/packages/nixvim";
toilet.url = "path:glasshouse-desktop/dotfiles/packages/toilet";
}; };
outputs = { nixpkgs, home-manager, desktop-utils, ... }@inputs: { outputs = { nixpkgs, home-manager, nvim, toilet, ... }@inputs: {
nixosConfigurations = { nixosConfigurations = {
glasshouse = nixpkgs.lib.nixosSystem { glasshouse = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
@@ -21,11 +22,11 @@
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.pagedmov = import ./glasshouse-desktop/home.nix; home-manager.users.pagedmov = import ./glasshouse-desktop/home.nix;
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
desktop-utils = desktop-utils.packages."x86_64-linux".default; nvim = nvim.packages."x86_64-linux".default;
toilet = toilet.packages."x86_64-linux".default;
}; };
} }
]; ];
}; };
}; };
}; };

View File

@@ -9,9 +9,13 @@
url = "path:packages/toilet"; url = "path:packages/toilet";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
hackneyed-cursors = {
url = "path:packages/theme/cursor";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { self, nixpkgs, nixvim, toilet, ... }@inputs: outputs = { self, nixpkgs, nixvim, hackneyed-cursors, toilet, ... }@inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
@@ -31,6 +35,7 @@
mkdir -p $out/bin mkdir -p $out/bin
ln -s ${nixvim.packages.${system}.default}/bin/nvim $out/bin/nvim ln -s ${nixvim.packages.${system}.default}/bin/nvim $out/bin/nvim
ln -s ${toilet.packages.${system}.default}/bin/toilet $out/bin/toilet ln -s ${toilet.packages.${system}.default}/bin/toilet $out/bin/toilet
ln -s ${hackneyed-cursors.packages.${system}.default} $out/bin/toilet
''; '';
}; };
}; };

View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1726937504,
"narHash": "sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "9357f4f23713673f310988025d9dc261c20e70c6",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -1,5 +1,5 @@
{ {
description = "Flake Boilerplate"; description = "Hackneyed X11 Cursors";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
@@ -12,26 +12,17 @@
in { in {
packages.${system} = { packages.${system} = {
default = pkgs.stdenv.mkDerivation { default = pkgs.stdenv.mkDerivation {
pname = "hackneyed-cursors"; pname = "hackneyed-cursors-dark-right-48px";
version = "0.9.2"; version = "0.9.2";
src = pkgs.fetchFromGitHub { src = pkgs.fetchurl {
owner = "Enthymeme"; url = "https://gitlab.com/-/project/6703061/uploads/53e6cb854a0bd446b326ca7c40fb5cdf/Hackneyed-Dark-48px-0.9.2-right-handed.tar.bz2";
repo = "hackneyed-x11-cursors";
rev = "master";
sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAA="; sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAA=";
}; };
buildInputs = with pkgs; [ installPhase = ''
imagemagick mkdir -p $out/share/icons/Hackneyed-Dark
inkscape tar xjf $src -C $out/share/icons/Hackneyed-Dark --strip-components=1
make
bash
xorg.xcursorgen
];
buildPhase = ''
./build-all-themes.sh --dark-theme-only -j dist.large
''; '';
}; };
}; };

View File

@@ -1,4 +1,4 @@
{ config, pkgs, desktop-utils, ... }: { config, pkgs, nvim, toilet, ... }:
{ {
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
@@ -45,9 +45,31 @@
zsh-syntax-highlighting zsh-syntax-highlighting
zsh-history-substring-search zsh-history-substring-search
zsh-autosuggestions zsh-autosuggestions
desktop-utils nvim
toilet
]; ];
home.pointerCursor =
let
getFrom = url: hash: name: {
gtk.enable = true;
x11.enable = true;
name = name;
size = 48;
package = pkgs.runcommand "moveUp" {} ''
mkdir -p $out/share/icons
ln -s ${pkgs.fetchzip {
url = url;
hash = hash;
}} $out/share/icons/${name}
'';
};
in
getFrom
"https://gitlab.com/-/project/6703061/uploads/53e6cb854a0bd446b326ca7c40fb5cdf/Hackneyed-Dark-48px-0.9.2-right-handed.tar.bz2"
"sha256-1zd8blhp899ndmdc7zalmqzma1p9gb8k1lbl88qk5ks1xlp73wai="
"Hackneyed-Dark";
home.file = { # dotfiles home.file = { # dotfiles
# example # example
# ".screenrc".source = dotfiles/screenrc; # ".screenrc".source = dotfiles/screenrc;