meow
This commit is contained in:
parent
44d708329a
commit
7dd32c7a17
9 changed files with 168 additions and 56 deletions
58
flake.lock
generated
58
flake.lock
generated
|
|
@ -360,11 +360,29 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"musnix": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1756852730,
|
||||
"narHash": "sha256-qPere4RBHoZxiEGl8zXU8gjroZg4gkYGEwaAbKmL4vE=",
|
||||
"owner": "musnix",
|
||||
"repo": "musnix",
|
||||
"rev": "7ccc92050e43dc92309396c6f2fe1f542214a242",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "musnix",
|
||||
"repo": "musnix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"niri": {
|
||||
"inputs": {
|
||||
"niri-stable": "niri-stable",
|
||||
"niri-unstable": "niri-unstable",
|
||||
"nixpkgs": "nixpkgs_4",
|
||||
"nixpkgs": "nixpkgs_5",
|
||||
"nixpkgs-stable": "nixpkgs-stable",
|
||||
"xwayland-satellite-stable": "xwayland-satellite-stable",
|
||||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||
|
|
@ -457,6 +475,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-mineral": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1757365535,
|
||||
"narHash": "sha256-s4YK7Ey2LJFLIAONWVXM3X+xdAIbjFgdK2s6lxmMIrQ=",
|
||||
"owner": "cynicsketch",
|
||||
"repo": "nix-mineral",
|
||||
"rev": "b76cc19351f159cd360d8ceea3ba9aff8fce6c6e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "cynicsketch",
|
||||
"repo": "nix-mineral",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1757103352,
|
||||
|
|
@ -588,6 +622,22 @@
|
|||
}
|
||||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1756542300,
|
||||
"narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d7600c775f877cd87b4f5a831c28aa94137377aa",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_5": {
|
||||
"locked": {
|
||||
"lastModified": 1757347588,
|
||||
"narHash": "sha256-tLdkkC6XnsY9EOZW9TlpesTclELy8W7lL2ClL+nma8o=",
|
||||
|
|
@ -603,7 +653,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_5": {
|
||||
"nixpkgs_6": {
|
||||
"locked": {
|
||||
"lastModified": 1757347588,
|
||||
"narHash": "sha256-tLdkkC6XnsY9EOZW9TlpesTclELy8W7lL2ClL+nma8o=",
|
||||
|
|
@ -671,10 +721,12 @@
|
|||
"determinate": "determinate",
|
||||
"firefox-addons": "firefox-addons",
|
||||
"home-manager": "home-manager",
|
||||
"musnix": "musnix",
|
||||
"niri": "niri",
|
||||
"nix-index-db": "nix-index-db",
|
||||
"nix-mineral": "nix-mineral",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs_5",
|
||||
"nixpkgs": "nixpkgs_6",
|
||||
"quickshell": "quickshell",
|
||||
"stylix": "stylix",
|
||||
"treefmt-nix": "treefmt-nix"
|
||||
|
|
|
|||
62
flake.nix
62
flake.nix
|
|
@ -35,7 +35,11 @@
|
|||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
musnix.url = "github:musnix/musnix";
|
||||
nix-mineral = {
|
||||
url = "github:cynicsketch/nix-mineral";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
|
@ -53,10 +57,12 @@
|
|||
stylix,
|
||||
comin,
|
||||
firefox-addons,
|
||||
musnix,
|
||||
nix-mineral,
|
||||
}:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
lib = pkgs.lib;
|
||||
|
||||
# Configure treefmt
|
||||
|
|
@ -90,7 +96,44 @@
|
|||
};
|
||||
in
|
||||
{
|
||||
packages.${system}.wallpapers = pkgs.stdenv.mkDerivation {
|
||||
packages.${system} = {
|
||||
hello-kitty-cursors = pkgs.stdenv.mkDerivation {
|
||||
pname = "hello-kitty-cursors";
|
||||
version = "1.0.0";
|
||||
|
||||
src = pkgs.fetchzip {
|
||||
url = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip";
|
||||
sha256 = "sha256-p4US/gftDL0ne4l0dHUIKKZy2oibkOqdJ3fMisySnNM="; # Replace with the actual hash of the zip file
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/icons/HelloKitty
|
||||
for file in ${self}/cursors/*; do
|
||||
if [ -e "$file" ]; then
|
||||
cp "$file" "$out/share/icons/HelloKitty/"
|
||||
else
|
||||
echo "Warning: File $file does not exist."
|
||||
fi
|
||||
done
|
||||
|
||||
# Adjust the path to index.theme if necessary
|
||||
if [ -e "${self}/index.theme" ]; then
|
||||
cp "${self}/index.theme" "$out/share/icons/HelloKitty/"
|
||||
else
|
||||
echo "Warning: index.theme does not exist."
|
||||
fi
|
||||
'';
|
||||
|
||||
meta = with nixpkgs.lib; {
|
||||
description = "Hello Kitty Cursor theme";
|
||||
homepage = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ your-maintainer-name ]; # Replace with your name
|
||||
};
|
||||
};
|
||||
|
||||
wallpapers = pkgs.stdenv.mkDerivation {
|
||||
name = "wallpapers";
|
||||
src = ./assets;
|
||||
|
||||
|
|
@ -124,14 +167,19 @@
|
|||
platforms = platforms.linux;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nixosConfigurations.p50 = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; };
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
"${nix-mineral}/nix-mineral.nix"
|
||||
niri.nixosModules.niri
|
||||
nixos-hardware.nixosModules.lenovo-thinkpad-p50
|
||||
./configuration.nix
|
||||
determinate.nixosModules.default
|
||||
musnix.nixosModules.musnix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
|
@ -149,6 +197,8 @@
|
|||
{
|
||||
imports = [
|
||||
./modules/home.nix
|
||||
./modules/bottom.nix
|
||||
./modules/htop.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
@ -166,12 +216,6 @@
|
|||
inputs.self.packages.${pkgs.system}.wallpapers
|
||||
}/share/wallpapers/anime-cat-girl-snow-optimized.mp4";
|
||||
};
|
||||
|
||||
# Configure dconf settings here or inside home.nix
|
||||
# Example:
|
||||
# home.sessionVariables = {
|
||||
# XDG_CURRENT_DESKTOP = "GNOME";
|
||||
# };
|
||||
};
|
||||
}
|
||||
c3d2-user-module.nixosModule
|
||||
|
|
|
|||
4
modules/bottom.nix
Normal file
4
modules/bottom.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.bottom.enable = true;
|
||||
}
|
||||
|
|
@ -11,12 +11,8 @@ let
|
|||
packageNames = map (font: font.package) fonts;
|
||||
in
|
||||
{
|
||||
fonts.packages =
|
||||
with pkgs;
|
||||
[
|
||||
fonts.packages = with pkgs; [
|
||||
iosevka
|
||||
comic-mono
|
||||
nerdfonts
|
||||
]
|
||||
++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
{ config
|
||||
, pkgs
|
||||
, inputs
|
||||
, ...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
|
|
|
|||
4
modules/htop.nix
Normal file
4
modules/htop.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.htop.enable = true;
|
||||
}
|
||||
4
modules/music.nix
Normal file
4
modules/music.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
musnix.enable = true;
|
||||
}
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, inputs
|
||||
, ...
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
makeCommand = command: {
|
||||
|
|
@ -11,10 +12,20 @@ let
|
|||
qs = "${pkgs.quickshell}/bin/qs";
|
||||
wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste";
|
||||
wallpapers = inputs.self.packages.${pkgs.system}.wallpapers;
|
||||
helloKittyCursor = pkgs.fetchzip {
|
||||
url = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip";
|
||||
hash = "";
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
programs.niri.settings = {
|
||||
cursor = {
|
||||
theme = "Hello-Kitty"; # Set the cursor theme
|
||||
size = 48; # Set the cursor size in logical pixels
|
||||
hide-after-inactive-ms = 1000; # Hide cursor after 1 second of inactivity
|
||||
hide-when-typing = true; # Hide cursor when typing
|
||||
};
|
||||
environment = {
|
||||
CLUTTER_BACKEND = "wayland";
|
||||
DISPLAY = ":0";
|
||||
|
|
|
|||
|
|
@ -97,8 +97,6 @@ in
|
|||
fg = "job unfreeze";
|
||||
nano = hx;
|
||||
vi = hx;
|
||||
nvim = hx;
|
||||
vim = hx;
|
||||
devenv-init = "${nix} flake init --template github:cachix/devenv";
|
||||
devenv-enter = "${nix} develop --impure";
|
||||
rust-init = "${nix} flake init --template templates#rust";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue