Compare commits

..

No commits in common. "201f76f23025ee965c70c63fb08e1687e91338d2" and "4348bef5ac1b49d4b78b70bf2e0439972af84953" have entirely different histories.

27 changed files with 273 additions and 1220 deletions

View file

@ -2,7 +2,9 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ pkgs { config
, lib
, pkgs
, ... , ...
}: }:
@ -78,6 +80,8 @@
]; ];
}; };
programs.firefox.enable = true;
# List packages installed in system profile. # List packages installed in system profile.
# You can use https://search.nixos.org/ to find more packages (and options). # You can use https://search.nixos.org/ to find more packages (and options).
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

148
flake.lock generated
View file

@ -301,21 +301,6 @@
"url": "https://flakehub.com/f/cachix/git-hooks.nix/0.1.941" "url": "https://flakehub.com/f/cachix/git-hooks.nix/0.1.941"
} }
}, },
"gnome-mobile": {
"locked": {
"lastModified": 1748795015,
"narHash": "sha256-+XyXaa3KmgOykQpo6k4XsEaHWDGj8inCxMMGOWat4EM=",
"owner": "chuangzhu",
"repo": "nixpkgs-gnome-mobile",
"rev": "825ebb10c8bf02cb4b6553f3b85e169dc92484d7",
"type": "github"
},
"original": {
"owner": "chuangzhu",
"repo": "nixpkgs-gnome-mobile",
"type": "github"
}
},
"gnome-shell": { "gnome-shell": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -353,56 +338,21 @@
"type": "github" "type": "github"
} }
}, },
"mobile-nixos": {
"flake": false,
"locked": {
"lastModified": 1741837934,
"narHash": "sha256-9GQyqCTAs9jShg0YdYsgWZalG3dwprkZK3vOHdoyeiE=",
"owner": "vlinkz",
"repo": "mobile-nixos",
"rev": "01db23f1cd3abfbd14dc06b983f336e74286730e",
"type": "github"
},
"original": {
"owner": "vlinkz",
"ref": "sdm845-6.14",
"repo": "mobile-nixos",
"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": { "niri": {
"inputs": { "inputs": {
"niri-stable": "niri-stable", "niri-stable": "niri-stable",
"niri-unstable": "niri-unstable", "niri-unstable": "niri-unstable",
"nixpkgs": "nixpkgs_5", "nixpkgs": "nixpkgs_4",
"nixpkgs-stable": "nixpkgs-stable", "nixpkgs-stable": "nixpkgs-stable",
"xwayland-satellite-stable": "xwayland-satellite-stable", "xwayland-satellite-stable": "xwayland-satellite-stable",
"xwayland-satellite-unstable": "xwayland-satellite-unstable" "xwayland-satellite-unstable": "xwayland-satellite-unstable"
}, },
"locked": { "locked": {
"lastModified": 1757437545, "lastModified": 1757423134,
"narHash": "sha256-7ssbrFnmSrqtCtOySiu5ncyOBxPrR6p2nhNHrg6D+fo=", "narHash": "sha256-CZpxYEwjxLDdF1xGtrPJU2DX8k7Q5ajDBjBrjlEswik=",
"owner": "sodiboo", "owner": "sodiboo",
"repo": "niri-flake", "repo": "niri-flake",
"rev": "ef694b996daeeb8684c0adfaa9b7067a6e709054", "rev": "11d325391d1bbb4bb8f49010959f54bb1f6038b4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -465,34 +415,23 @@
"url": "https://flakehub.com/f/DeterminateSystems/nix-src/%2A" "url": "https://flakehub.com/f/DeterminateSystems/nix-src/%2A"
} }
}, },
"nix-flatpak": { "nix-index-db": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": { "locked": {
"lastModified": 1754777568, "lastModified": 1757218147,
"narHash": "sha256-0bBqT+3XncgF8F03RFAamw9vdf0VmaDoIJLTGkjfQZs=", "narHash": "sha256-IwOwN70HvoBNB2ckaROxcaCvj5NudNc52taPsv5wtLk=",
"owner": "gmodena", "owner": "Mic92",
"repo": "nix-flatpak", "repo": "nix-index-database",
"rev": "62f636b87ef6050760a8cb325cadb90674d1e23e", "rev": "9b144dc3ef6e42b888c4190e02746aab13b0e97f",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "gmodena", "owner": "Mic92",
"repo": "nix-flatpak", "repo": "nix-index-database",
"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" "type": "github"
} }
}, },
@ -584,11 +523,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1757408970, "lastModified": 1757341549,
"narHash": "sha256-aSgK4BLNFFGvDTNKPeB28lVXYqVn8RdyXDNAvgGq+k0=", "narHash": "sha256-fRnT+bwP1sB6ne7BLw4aXkVYjr+QCZZ+e4MhbokHyd4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d179d77c139e0a3f5c416477f7747e9d6b7ec315", "rev": "9d1fa9fa266631335618373f8faad570df6f9ede",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -627,22 +566,6 @@
} }
}, },
"nixpkgs_4": { "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": { "locked": {
"lastModified": 1757347588, "lastModified": 1757347588,
"narHash": "sha256-tLdkkC6XnsY9EOZW9TlpesTclELy8W7lL2ClL+nma8o=", "narHash": "sha256-tLdkkC6XnsY9EOZW9TlpesTclELy8W7lL2ClL+nma8o=",
@ -658,7 +581,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_6": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1757347588, "lastModified": 1757347588,
"narHash": "sha256-tLdkkC6XnsY9EOZW9TlpesTclELy8W7lL2ClL+nma8o=", "narHash": "sha256-tLdkkC6XnsY9EOZW9TlpesTclELy8W7lL2ClL+nma8o=",
@ -699,20 +622,37 @@
"type": "github" "type": "github"
} }
}, },
"quickshell": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1756981260,
"narHash": "sha256-GhuD9QVimjynHI0OOyZsqJsnlXr2orowh9H+HYz4YMs=",
"ref": "refs/heads/master",
"rev": "6eb12551baf924f8fdecdd04113863a754259c34",
"revCount": 672,
"type": "git",
"url": "https://git.outfoxxed.me/quickshell/quickshell"
},
"original": {
"type": "git",
"url": "https://git.outfoxxed.me/quickshell/quickshell"
}
},
"root": { "root": {
"inputs": { "inputs": {
"c3d2-user-module": "c3d2-user-module", "c3d2-user-module": "c3d2-user-module",
"comin": "comin", "comin": "comin",
"determinate": "determinate", "determinate": "determinate",
"gnome-mobile": "gnome-mobile",
"home-manager": "home-manager", "home-manager": "home-manager",
"mobile-nixos": "mobile-nixos",
"musnix": "musnix",
"niri": "niri", "niri": "niri",
"nix-flatpak": "nix-flatpak", "nix-index-db": "nix-index-db",
"nix-mineral": "nix-mineral",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_6", "nixpkgs": "nixpkgs_5",
"quickshell": "quickshell",
"stylix": "stylix", "stylix": "stylix",
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
} }

224
flake.nix
View file

@ -15,6 +15,14 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/*"; determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/*";
nix-index-db = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
quickshell = {
url = "git+https://git.outfoxxed.me/quickshell/quickshell";
inputs.nixpkgs.follows = "nixpkgs";
};
comin = { comin = {
url = "github:nlewo/comin"; url = "github:nlewo/comin";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -23,17 +31,10 @@
url = "github:nix-community/stylix"; url = "github:nix-community/stylix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
musnix.url = "github:musnix/musnix"; firefox-addons = {
nix-mineral = { url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
url = "github:cynicsketch/nix-mineral"; inputs.nixpkgs.follows = "nixpkgs";
flake = false;
}; };
mobile-nixos = {
url = "github:vlinkz/mobile-nixos/sdm845-6.14";
flake = false;
};
gnome-mobile.url = "github:chuangzhu/nixpkgs-gnome-mobile";
nix-flatpak.url = "github:gmodena/nix-flatpak";
}; };
outputs = outputs =
@ -46,18 +47,14 @@
nixos-hardware, nixos-hardware,
treefmt-nix, treefmt-nix,
determinate, determinate,
nix-index-db,
quickshell,
stylix, stylix,
comin, comin,
musnix,
nix-mineral,
mobile-nixos,
gnome-mobile,
nix-flatpak,
}: }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; }; pkgs = nixpkgs.legacyPackages.${system};
lib = pkgs.lib;
# Configure treefmt # Configure treefmt
treefmtEval = treefmt-nix.lib.evalModule pkgs { treefmtEval = treefmt-nix.lib.evalModule pkgs {
@ -90,156 +87,59 @@
}; };
in in
{ {
packages.${system} = { packages.${system}.wallpaper = pkgs.stdenv.mkDerivation {
hello-kitty-cursors = pkgs.stdenv.mkDerivation { name = "wallpaper";
pname = "hello-kitty-cursors"; src = ./assets/wp6553608.jpg;
version = "1.0.0"; dontUnpack = true;
src = pkgs.fetchzip { installPhase = ''
url = "https://www.rw-designer.com/cursor-downloadset/hello-kitty.zip"; mkdir -p $out
sha256 = "sha256-p4US/gftDL0ne4l0dHUIKKZy2oibkOqdJ3fMisySnNM="; # Replace with the actual hash of the zip file cp $src $out/wallpaper.jpg
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;
buildInputs = with pkgs; [ ffmpeg ];
buildPhase = ''
# Create output directory
mkdir -p $out/share/wallpapers
# Copy static wallpaper
cp "wp6553608.jpg" "$out/share/wallpapers/static-wallpaper.jpg"
# Copy original animated wallpaper
cp "Anime Live Wallpaper - Anime Cat Girl Snow - HD - no copyright [SiMc3l0ido0].mp4" \
"$out/share/wallpapers/anime-cat-girl-snow.mp4"
# Create optimized version
${pkgs.ffmpeg}/bin/ffmpeg -i "Anime Live Wallpaper - Anime Cat Girl Snow - HD - no copyright [SiMc3l0ido0].mp4" \
-vf "scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080" \
-r 30 -c:v libx264 -crf 28 -preset medium \
-t 30 -an "$out/share/wallpapers/anime-cat-girl-snow-optimized.mp4"
'';
installPhase = ''
# Files are already in the right place from buildPhase
echo "Wallpapers installed to $out/share/wallpapers"
'';
meta = with lib; {
description = "Personal wallpaper collection";
platforms = platforms.linux;
};
};
}; };
nixosConfigurations.p50 = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [
niri.nixosModules.niri
nixos-hardware.nixosModules.lenovo-thinkpad-p50
./configuration.nix
determinate.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.users.lucy =
{
config,
pkgs,
lib,
inputs,
...
}:
{
imports = [
./modules/home.nix
];
nixosConfigurations = { # Configure dconf settings here or inside home.nix
cutie = nixpkgs.lib.nixosSystem { # Example:
system = "aarch64-linux"; # home.sessionVariables = {
modules = [ # XDG_CURRENT_DESKTOP = "GNOME";
./hosts/cutie/configuration.nix # };
gnome-mobile.nixosModules.gnome-mobile };
nix-flatpak.nixosModules.nix-flatpak }
(import "${mobile-nixos}/lib/configuration.nix" { c3d2-user-module.nixosModule
device = "oneplus-fajita"; ./modules/nix.nix
}) ./modules/fonts.nix
]; comin.nixosModules.comin
}; ./modules/comin.nix
p50 = nixpkgs.lib.nixosSystem { stylix.nixosModules.stylix
specialArgs = { inherit inputs; }; ./modules/stylix.nix
system = "x86_64-linux"; ];
modules = [
"${nix-mineral}/nix-mineral.nix"
niri.nixosModules.niri
nixos-hardware.nixosModules.lenovo-thinkpad-p50
./hosts/p50/configuration.nix
determinate.nixosModules.default
musnix.nixosModules.musnix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.users.lucy =
{
pkgs,
inputs,
...
}:
{
imports = [
./modules/home.nix
./modules/bottom.nix
./modules/htop.nix
];
home.packages = with pkgs; [
inputs.self.packages.${pkgs.system}.wallpapers
];
home.file = {
".local/share/wallpapers/anime-cat-girl-snow.mp4".source = "${
inputs.self.packages.${pkgs.system}.wallpapers
}/share/wallpapers/anime-cat-girl-snow.mp4";
".local/share/wallpapers/static-wallpaper.jpg".source = "${
inputs.self.packages.${pkgs.system}.wallpapers
}/share/wallpapers/static-wallpaper.jpg";
".local/share/wallpapers/anime-cat-girl-snow-optimized.mp4".source = "${
inputs.self.packages.${pkgs.system}.wallpapers
}/share/wallpapers/anime-cat-girl-snow-optimized.mp4";
};
};
}
c3d2-user-module.nixosModule
./modules/nix.nix
./modules/fonts.nix
comin.nixosModules.comin
./modules/comin.nix
stylix.nixosModules.stylix
./modules/stylix.nix
./modules/firefox-nixos.nix
];
};
}; };
fajita-fastboot-images =
inputs.self.nixosConfigurations.fajita.config.mobile.outputs.android.android-fastboot-images;
fajita-minimal-image =
inputs.self.nixosConfigurations.fajita_minimal.config.mobile.outputs.android.android-fastboot-images;
uefi-x86_64-image = inputs.self.nixosConfigurations.uefi-x86_64.config.mobile.outputs.default;
# Add treefmt formatter # Add treefmt formatter
formatter.${system} = treefmtEval.config.build.wrapper; formatter.${system} = treefmtEval.config.build.wrapper;

View file

@ -1,7 +1,7 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports =

View file

@ -1,42 +0,0 @@
{ lib, pkgs, ... }:
{
services.flatpak.remotes = [
{
name = "flathub";
location = "https://flathub.org/repo/flathub.flatpakrepo";
}
];
mobile.beautification = {
silentBoot = false;
splash = false;
};
users.users.lucy = {
isNormalUser = true;
hashedPassword = "$y$j9T$D1EpjBC8amO7RbwfitIHW.$qZeydQSBI0dzCm7TVUmJ4ZDzBQMMNVG6NUiTpa45XVA";
extraGroups = [
"dialout"
"feedbackd"
"networkmanager"
"video"
"wheel"
];
};
environment.systemPackages = with pkgs; [
fractal
mission-center
];
environment.sessionVariables.NIXPKGS_ALLOW_UNFREE = "1";
zramSwap.enable = true;
networking.firewall.enable = lib.mkForce false;
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
system.stateVersion = "24.11";
}

View file

@ -1,133 +0,0 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ pkgs
, ...
}:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "twinkpad"; # Define your hostname.
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
# Set your time zone.
time.timeZone = "Europe/Berlin";
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
# useXkbConfig = true; # use xkb.options in tty.
# };
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
programs.niri.enable = true;
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape";
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound.
# services.pulseaudio.enable = true;
# OR
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# make pipewire realtime-capable
security.rtkit.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.mutableUsers = false;
users.users.lucy = {
initialHashedPassword = "$6$QX95LTUGi55mFQOZ$j19/LuGvMeWOBCp/oEOLWDU5rcrEfD9/2AQ3sW1OVMROMJEFpg/hTrWKnOgIUfzWtF32wUxNlThXIJm8YWJwZ.";
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
tree
];
};
# List packages installed in system profile.
# You can use https://search.nixos.org/ to find more packages (and options).
environment.systemPackages = with pkgs; [
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
wget
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#
# Most users should NEVER change this value after the initial install, for any reason,
# even if you've upgraded your system to a new NixOS release.
#
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
# to actually do that.
#
# This value being lower than the current NixOS release does NOT mean your system is
# out of date, out of support, or vulnerable.
#
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "25.05"; # Did you read the comment?
nixpkgs.config.allowUnfree = true;
}

View file

@ -1,65 +0,0 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "uas" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "none";
fsType = "tmpfs";
options = [ "defaults" "size=8G" "mode=755" ];
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/0777-71C3";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/nix" =
{
device = "/dev/disk/by-uuid/3a8c6986-3105-4f1f-a75b-f72e4ec5ecdc";
fsType = "ext4";
};
boot.initrd.luks.devices."nix".device = "/dev/disk/by-uuid/439beee9-6797-41bc-bc4f-01bfe1a75166";
fileSystems."/etc/nixos" =
{
device = "/nix/persist/etc/nixos";
fsType = "none";
options = [ "bind" ];
};
fileSystems."/var/log" =
{
device = "/nix/persist/var/log";
fsType = "none";
options = [ "bind" ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -2,34 +2,36 @@
{ {
programs.alacritty.enable = true; programs.alacritty.enable = true;
programs.alacritty.settings = { programs.alacritty.settings = {
window.opacity = lib.mkForce 0.8; window.opacity = lib.mkDefault 0.8;
colors.bright = lib.mkForce { /*
black = "#444b6a"; colors.bright = {
blue = "#7da6ff"; black = "#444b6a";
cyan = "#0db9d7"; blue = "#7da6ff";
green = "#b9f27c"; cyan = "#0db9d7";
magenta = "#bb9af7"; green = "#b9f27c";
red = "#ff7a93"; magenta = "#bb9af7";
white = "#acb0d0"; red = "#ff7a93";
yellow = "#ff9e64"; white = "#acb0d0";
}; yellow = "#ff9e64";
colors.normal = lib.mkForce { };
black = "#32344a"; colors.normal = {
blue = "#7aa2f7"; black = "#32344a";
cyan = "#449dab"; blue = "#7aa2f7";
green = "#9ece6a"; cyan = "#449dab";
magenta = "#ad8ee6"; green = "#9ece6a";
red = "#f7768e"; magenta = "#ad8ee6";
white = "#787c99"; red = "#f7768e";
yellow = "#e0af68"; white = "#787c99";
}; yellow = "#e0af68";
colors.primary = lib.mkForce { };
background = "#1a1b26"; colors.primary = {
foreground = "#a9b1d6"; background = "#1a1b26";
}; foreground = "#a9b1d6";
font = lib.mkForce { };
*/
font = {
normal = { normal = {
family = "Iosevka"; family = lib.mkForce "Iosevka";
style = "Regular"; style = "Regular";
}; };
bold = { bold = {

View file

@ -1,4 +0,0 @@
{ ... }:
{
programs.bottom.enable = true;
}

View file

@ -1,23 +0,0 @@
{ ... }:
{
programs.firefox = {
policies.ExtensionSettings = {
"uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed";
};
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
installation_mode = "force_installed";
};
"jid1-MnnxcxisBPnSXQ@jetpack" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi";
installation_mode = "force_installed";
};
"extension@tabliss.io" = {
install_url = "https://addons.mozilla.org/firefox/downloads/file/3940751/tabliss-2.6.0.xpi";
installation_mode = "force_installed";
};
};
};
}

View file

@ -1,119 +0,0 @@
{ ... }:
{
programs.firefox = {
enable = true;
policies = {
AutofillAddressEnabled = false;
AutofillCreditCardEnabled = false;
BlockAboutAddons = true;
BlockAboutConfig = true;
BlockAboutProfiles = true;
Bookmarks = [
{
Placement = "toolbar";
Title = "NixOS Search";
URL = "https://search.nixos.org";
}
{
Placement = "toolbar";
Title = "NixOS Wiki";
URL = "https://wiki.nixos.org";
}
{
Placement = "toolbar";
Title = "c-base";
URL = "https://c-base.org";
}
{
Placement = "toolbar";
Title = "c-base Wiki";
URL = "https://wiki.c-base.org";
}
];
Cookies = {
Behavior = "accept";
BehaviorPrivateBrowsing = "reject";
};
DisableAccounts = true;
DisableAppUpdate = true;
DisableBuiltinPDFViewer = true;
DisableFeedbackCommands = true;
DisableFirefoxScreenshots = true;
DisableFirefoxStudies = true;
DisableForgetButton = true;
DisableFormHistory = true;
DisablePasswordReveal = true;
DisableProfileImport = true;
DisableProfileRefresh = true;
DisableSetDesktopBackground = true;
DisableTelemetry = true;
EnableTrackingProtection = {
BaselineExceptions = true;
Category = "standard";
ConvenienceExceptions = true;
Cryptomining = true;
EmailTracking = true;
Fingerprinting = true;
SuspectedFingerprinting = true;
Value = true;
};
ExtensionUpdate = false;
FirefoxSuggest = {
ImproveSuggest = false;
SponsoredSuggestions = false;
WebSuggestions = true;
};
HardwareAcceleration = false;
NewTabPage = true;
PasswordManagerEnabled = false;
PictureInPicture = {
Enabled = true;
};
Preferences = {
browser.fixup.dns_first_for_single_words = {
Status = "locked";
Type = "boolean";
Value = true;
};
browser.search.update = {
Status = "locked";
Type = "boolean";
Value = true;
};
extensions.getAddons.showPane = {
Status = "locked";
Type = "boolean";
Value = false;
};
media.gmp-gmpopenh264.enabled = {
Status = "locked";
Type = "boolean";
Value = true;
};
network.IDN_show_punycode = {
Status = "locked";
Type = "boolean";
Value = true;
};
network.dns.disableIPv6 = {
Status = "locked";
Type = "boolean";
Value = false;
};
};
PrintingEnabled = true;
PrivateBrowsingModeAvailability = 0;
SanitizeOnShutdown = {
Cache = true;
Cookies = false;
FormData = false;
History = false;
Sessions = false;
SiteSettings = false;
};
TranslateEnabled = false;
};
};
}

View file

@ -1,6 +1,7 @@
{ {
config, config,
pkgs, pkgs,
inputs,
... ...
}: }:
{ {
@ -14,9 +15,6 @@
./hypridle.nix ./hypridle.nix
./fuzzel.nix ./fuzzel.nix
./hyfetch.nix ./hyfetch.nix
./ssh.nix
./firefox.nix
./wallpaper.nix
]; ];
# TODO please change the username & home directory to your own # TODO please change the username & home directory to your own
@ -125,10 +123,6 @@
seatd seatd
jaq jaq
wl-clipboard wl-clipboard
element-desktop
jetbrains.idea-community
jdk
gradle
]; ];
# basic configuration of git, please change to your own # basic configuration of git, please change to your own
programs.git = { programs.git = {

View file

@ -1,4 +0,0 @@
{ ... }:
{
programs.htop.enable = true;
}

View file

@ -1,4 +1,4 @@
{ ... }: { pkgs, ... }:
{ {
programs.hyfetch = { programs.hyfetch = {
enable = true; enable = true;

View file

@ -1,7 +1,8 @@
{ pkgs {
, lib pkgs,
, config lib,
, ... config,
...
}: }:
let let
lock = "${pkgs.systemd}/bin/loginctl lock-session"; lock = "${pkgs.systemd}/bin/loginctl lock-session";

View file

@ -1,4 +0,0 @@
{ ... }:
{
musnix.enable = true;
}

View file

@ -10,6 +10,7 @@ let
close-window close-window
maximize-column maximize-column
screenshot-window screenshot-window
screenshot
focus-column-left focus-column-left
focus-column-right focus-column-right
focus-workspace-up focus-workspace-up
@ -33,11 +34,10 @@ let
# Generate workspace focus binds (Mod+1 to Mod+9) # Generate workspace focus binds (Mod+1 to Mod+9)
wsBinds = builtins.listToAttrs ( wsBinds = builtins.listToAttrs (
builtins.genList builtins.genList (i: {
(i: { name = "Mod+${toString (i + 1)}";
name = "Mod+${toString (i + 1)}"; value.action.focus-workspace = i + 1;
value.action.focus-workspace = i + 1; }) 9
}) 9
); );
in in

View file

@ -1,4 +1,4 @@
{ ... }: { inputs, pkgs, ... }:
{ {
imports = [ imports = [
./settings.nix ./settings.nix

View file

@ -1,7 +1,8 @@
{ lib {
, pkgs config,
, inputs lib,
, ... pkgs,
...
}: }:
let let
makeCommand = command: { makeCommand = command: {
@ -9,17 +10,9 @@ let
}; };
qs = "${pkgs.quickshell}/bin/qs"; qs = "${pkgs.quickshell}/bin/qs";
wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste"; wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste";
wallpapers = inputs.self.packages.${pkgs.system}.wallpapers;
in in
{ {
programs.niri.settings = { 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 = { environment = {
CLUTTER_BACKEND = "wayland"; CLUTTER_BACKEND = "wayland";
DISPLAY = ":0"; DISPLAY = ":0";
@ -30,17 +23,9 @@ in
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
SDL_VIDEODRIVER = "wayland"; SDL_VIDEODRIVER = "wayland";
}; };
spawn-at-startup = [ spawn-at-startup = [
(makeCommand "${lib.getExe pkgs.hyprlock}") (makeCommand "${lib.getExe pkgs.hyprlock}")
{ (makeCommand "${pkgs.swww}/bin/swww-daemon")
command = [
"${lib.getExe pkgs.mpvpaper}"
"-vs"
"-o"
"'no-audio loop' ALL ${wallpapers}/share/wallpapers/*.mp4"
];
}
{ {
command = [ command = [
"${wl-paste}" "${wl-paste}"
@ -66,6 +51,7 @@ in
]; ];
} }
]; ];
input = { input = {
touchpad = { touchpad = {
click-method = "button-areas"; click-method = "button-areas";

View file

@ -1,18 +1,8 @@
{ ... }: { ... }: {
{
nix.settings = { nix.settings = {
experimental-features = [ experimental-features = [ "nix-command" "flakes" ];
"nix-command"
"flakes"
];
substituters = [ substituters = [ "https://nix-gaming.cachix.org" ];
"https://nix-gaming.cachix.org" trusted-public-keys = [ "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" ];
"https://attic.mildlyfunctional.gay/nixbsd"
];
trusted-public-keys = [
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
"nixbsd:gwcQlsUONBLrrGCOdEboIAeFq9eLaDqfhfXmHZs1mgc="
];
}; };
} }

View file

@ -1,9 +1,4 @@
{ lib, pkgs, ... }: { lib, pkgs, ... }: {
let
hx = lib.getExe pkgs.helix;
nix = lib.getExe pkgs.nix;
in
{
programs = { programs = {
nushell = { nushell = {
enable = true; enable = true;
@ -36,7 +31,9 @@ in
# fish completions https://www.nushell.sh/cookbook/external_completers.html#fish-completer # fish completions https://www.nushell.sh/cookbook/external_completers.html#fish-completer
let fish_completer = {|spans| let fish_completer = {|spans|
${lib.getExe pkgs.fish} --command $'complete "--do-complete=($spans | str join " ")"' ${
lib.getExe pkgs.fish
} --command $'complete "--do-complete=($spans | str join " ")"'
| $"value(char tab)description(char newline)" + $in | $"value(char tab)description(char newline)" + $in
| from tsv --flexible --no-infer | from tsv --flexible --no-infer
} }
@ -95,23 +92,22 @@ in
shellAliases = { shellAliases = {
fg = "job unfreeze"; fg = "job unfreeze";
nano = hx; nano = "hx";
vi = hx; vi = "hx";
devenv-init = "${nix} flake init --template github:cachix/devenv"; nvim = "hx";
devenv-enter = "${nix} develop --impure"; vim = "hx";
rust-init = "${nix} flake init --template templates#rust"; devenv-init = "nix flake init --template github:cachix/devenv";
c-init = "${nix} flake init --template templates#c-hello"; devenv-enter = "nix develop --impure";
go-hello = "${nix} flake init --template templates#go-hello"; rust-init = "nix flake init --template templates#rust";
haskell-hello = "${nix} flake init --template templates#haskell-hello"; c-init = "nix flake init --template templates#c-hello";
g = "${lib.getExe pkgs.git}"; go-hello = "nix flake init --template templates#go-hello";
copy = "${pkgs.wl-clipboard}/bin/wl-copy"; haskell-hello = "nix flake init --template templates#haskell-hello";
neofetch = "hyfetch";
}; };
}; };
carapace.enable = true; carapace.enable = true;
carapace.enableNushellIntegration = true; carapace.enableNushellIntegration = true;
starship = { starship = { enable = true; };
enable = true;
};
}; };
} }

View file

@ -1,7 +1,8 @@
{ pkgs {
, inputs pkgs,
, lib inputs,
, ... lib,
...
}: }:
let let
quickshell = inputs.quickshell.packages.${pkgs.system}.default; quickshell = inputs.quickshell.packages.${pkgs.system}.default;

View file

@ -1,35 +0,0 @@
{ ...
}:
let
mkMatchBlock =
{ hostname }:
{
inherit hostname;
user = "lucy"; # Use dynamically retrieved user
identityFile = [
"/nix/persist/etc/ssh/id_ed25519"
];
port = 22;
};
in
{
# Enable SSH client in Home Manager
programs.ssh = {
enable = true;
# Define host-specific SSH configurations (match blocks)
matchBlocks = {
"shell.c-base.org" = mkMatchBlock { hostname = "shell.c-base.org"; };
"code.c-base.org" = mkMatchBlock { hostname = "code.c-base.org"; };
};
# Any extra SSH configuration options you want globally
extraConfig = ''
# Example of global settings
Compression yes
ServerAliveInterval 60
'';
};
}

View file

@ -1,10 +0,0 @@
{ pkgs
, inputs
, ...
}:
{
programs.mpvpaper = {
enable = true;
};
}

View file

@ -1,443 +1,119 @@
{ {
config,
pkgs,
...
}:
{
home.packages = with pkgs; [ waybar ];
programs.waybar = { programs.waybar = {
enable = true; enable = true;
settings = { settings = {
mainBar = { mainBar = {
layer = "top"; layer = "top";
"modules-left" = [ position = "top";
height = 28;
output = [ "eDP-1" ];
margin = "10 20";
modules-left = [
"niri/workspaces" "niri/workspaces"
"hyprland/window" "custom/catgirl-status"
]; ];
"modules-center" = [ "clock" ]; modules-center = [ "sway/window" ];
"modules-right" = [ modules-right = [
"tray" "battery"
"cpu" "network"
"memory" "clock"
"idle_inhibitor"
"pulseaudio"
"bluetooth"
]; ];
"hyprland/window" = {
format = "{title}"; # Catgirl status placeholder
"max-length" = 333; "custom/catgirl-status" = {
"seperate-outputs" = true; interval = 10;
}; exec = ''
clock = { echo ""
format = "<span foreground='#282828'> </span><span>{:%I:%M %a %d}</span>"; '';
"tooltip-format" = "{calendar}"; format = "{}";
calendar = { max-length = 40;
mode = "month"; tooltip = false;
"mode-mon-col" = 3;
"on-scroll" = 1;
"on-click-right" = "mode";
format = {
months = "<span color='#ffead3'><b>{}</b></span>";
days = "<span color='#ecc6d9'><b>{}</b></span>";
weeks = "<span color='#99ffdd'><b>{%W}</b></span>";
weekdays = "<span color='#ffcc66'><b>{}</b></span>";
today = "<span color='#ff6699'><b>{}</b></span>";
};
};
actions = {
"on-click-middle" = "mode";
"on-click-right" = "shift_up";
"on-click" = "shift_down";
};
};
cpu = {
format = "<span foreground='#b8bb26'>󰯳</span> {usage}%";
};
memory = {
format = "<span foreground='#d65d9e'>󰍛</span> {}%";
interval = 1;
};
"custom/gpu-util" = {
exec = "./scripts/gpu-util";
format = "<span foreground='#67b0e8'>󰯿</span> {}";
interval = 1;
};
"custom/gpu-temp" = {
exec = "./scripts/gpu-temp";
format = "<span foreground='#e57474'></span> {}";
interval = 1;
};
temperature = {
"hwmon-path" = "/sys/class/hwmon/hwmon1/temp1_input";
"critical-threshold" = 80;
format = "<span foreground='#83a598'></span> {temperatureC}°C";
interval = 1;
}; };
# Workspaces with numbers instead of icons
"niri/workspaces" = { "niri/workspaces" = {
format = "{icon}"; all-outputs = true;
"active-only" = false; disable-click = false;
"sort-by-number" = true;
"on-click" = "activate";
"all-outputs" = false;
"format-icons" = {
"1" = "1";
"2" = "2";
"3" = "3";
"4" = "4";
"5" = "5";
"6" = "6";
"7" = "7";
"8" = "8";
"9" = "9";
"10" = "10";
};
};
network = {
format = "󰤭 Off";
"format-wifi" = "{essid} ({signalStrength}%)";
"format-ethernet" = "<span foreground='#b48ead'>󰈀</span>";
"format-disconnected" = "󰤭 Disconnected";
"tooltip-format" = "{ifname} via {gwaddr} ";
"tooltip-format-wifi" = "{essid}({signalStrength}%) ";
"tooltip-format-ethernet" = "󰈀 {ifname}";
"tooltip-format-disconnected" = "Disconnected";
};
pulseaudio = {
format = "<span foreground='#cc241d'>{icon}</span> {volume}% {format_source}";
"format-bluetooth" = "<span foreground='#b16286'>{icon}</span> {volume}% {format_source}";
"format-bluetooth-muted" = "<span foreground='#D699B6'>󰖁</span> {format_source}";
"format-muted" = "<span foreground='#7A8478'>󰖁</span> {format_source}";
"format-source" = "<span foreground='#E67E80'></span> {volume}%";
"format-source-muted" = "<span foreground='#F38BA8'></span>";
"format-icons" = {
headphone = "";
phone = "";
portable = "";
default = [
""
""
""
];
};
"on-click-left" = "pavucontrol";
input = true;
};
"custom/playerctl" = {
format = "{icon} <span>{}</span>";
"return-type" = "json";
"max-length" = 333;
exec = "playerctl -a metadata --format '{\"text\": \"{{artist}} ~ {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F";
"on-click-middle" = "playerctl play-pause";
"on-click" = "playerctl previous";
"on-click-right" = "playerctl next";
"format-icons" = {
Playing = "<span foreground='#98BB6C'></span>";
Paused = "<span foreground='#E46876'></span>";
};
};
tray = {
format = "<span foreground='#D3C6AA'>{icon}</span>";
"icon-size" = 14;
spacing = 5;
};
idle_inhibitor = {
format = "{icon}";
"format-icons" = {
activated = "󱠛";
deactivated = "󱤱";
};
};
"custom/subs" = {
format = "<span foreground='#fbf1c7'>󰗃 </span> {}";
exec = "/usr/local/bin/subsfile.sh";
"on-click" = "vivaldi-stable https://youtube.com/thelinuxcast";
"restart-interval" = 1;
};
"custom/spacer" = {
format = " ";
};
"wlr/taskbar" = {
format = "{name}"; format = "{name}";
"icon-size" = 14; disable-markup = false;
"icon-theme" = "Numix-Circle"; max-length = 6;
"tooltip-format" = "{title}";
"on-click" = "activate";
"on-click-middle" = "close";
"ignore-list" = [ "Alacritty" ];
"app_ids-mapping" = {
firefoxdeveloperedition = "firefox-developer-edition";
};
rewrite = {
"Firefox Web Browser" = "Firefox";
"Foot Server" = "Terminal";
};
}; };
bluetooth = {
"on-click" = "./scripts/bluetooth-control"; battery = {
"on-click-right" = "./scripts/rofi-bluetooth"; format = "🔋 {capacity}%";
"on-click-middle" = "./scripts/rofi-bluetooth"; low = 20;
format = "{icon}"; critical = 10;
interval = 15; format-low = " {capacity}%";
"format-icons" = { format-critical = "🚨 {capacity}%";
on = "<span foreground='#43242B'></span>"; tooltip = true;
off = "<span foreground='#76946A'>󰂲</span>"; };
disabled = "󰂲";
connected = ""; network = {
}; interface = "wlan0";
"tooltip-format" = "{device_alias} {status}"; format-connected = "📶 {essid}";
format-disconnected = "📡 disconnected";
tooltip = true;
};
clock = {
format = "{:%a %b %d, %H:%M}";
tooltip = false;
}; };
}; };
}; };
style = '' style = ''
@define-color bg #${config.stylix.base16Scheme.base00};
@define-color fg #${config.stylix.base16Scheme.base05};
@define-color lbg #${config.stylix.base16Scheme.base01};
@define-color yellow #${config.stylix.base16Scheme.base0A};
@define-color lavender #${config.stylix.base16Scheme.base0E};
@define-color peach #${config.stylix.base16Scheme.base0A};
@define-color red #${config.stylix.base16Scheme.base08};
@define-color green #${config.stylix.base16Scheme.base0B};
@define-color blue #${config.stylix.base16Scheme.base0D};
@define-color border #${config.stylix.base16Scheme.base02};
* { * {
min-height: 0; font-family: "Comic Mono", "Fira Mono", monospace;
margin: 0px 0px 0px 0px; border-radius: 12px;
padding: 0; font-weight: 600;
border-radius: 7px; padding: 5px 15px;
font-family: "JetBrains Mono Nerd Font";
font-size: 14pt;
font-weight: 700;
padding-bottom: 0px;
}
tooltip {
background: @bg;
border-radius: 7px;
border: 2px solid @border;
}
#window {
margin: 0px 0px 0px 0px;
padding-left: 10px;
padding-right: 7px;
border-radius: 3px;
border-color: @lbg;
background-color: @yellow;
color: @bg;
}
window#waybar.empty #window {
background-color: @bg;
border-bottom: none;
border-right: none;
} }
window#waybar { window#waybar {
background-color: @bg; background-color: #3A3A58;
color: @lavender; color: #FF69B4;
} border: 2px solid #FF69B4;
box-shadow: 0 0 15px #FF69B4AA;
/* Workspaces */
@keyframes button_activate {
from { opacity: .3 }
to { opacity: 1.; }
}
#workspaces {
margin: 0px 0px 0px 0px;
border-radius: 3px;
padding: 1px;
background-color: @bg;
color: @bg;
} }
#workspaces button { #workspaces button {
margin: 0px 0px 0px 0px; background-color: #FF69B4;
border-radius: 3px; color: #3A3A58;
padding-left: 3px; margin: 0 3px;
padding-right: 9px; border-radius: 8px;
background-color: @bg; padding: 3px 10px;
color: @fg; transition: background-color 0.2s ease;
} font-family: "Fira Mono", monospace;
#workspaces button.active {
background-color:@blue;
color: @bg;
}
#workspaces button.urgent {
color: #F38BA8;
} }
#workspaces button:hover { #workspaces button:hover {
border: solid transparent; background-color: #FFB6C1;
color: #1A1A2E;
} }
#custom-gpu-util { #workspaces button.active {
margin: 0px 0px 0px 0px; background-color: #FF69B4;
padding-left: 10px; color: #FFF0F5;
padding-right: 10px; font-weight: bold;
border-radius: 7px;
background-color: @bg;
color: @fg;
}
#tray {
margin: 0px 0px 0px 0px;
border-radius: 3px;
padding-left: 10px;
padding-right: 10px;
background-color: @bg;
color: @fg;
}
#idle_inhibitor {
margin: 0px 0px 0px 0px;
padding-left: 10px;
padding-right: 12px;
border-radius: 3px;
background-color: @bg;
color: @fg;
}
#network {
margin: 5px 5px 2px 5px;
padding-left: 10px;
padding-right: 12px;
border-radius: 7px;
background-color: @bg;
color: @lavender;
}
#network.linked {
color: @peach;
}
#network.disconnected,
#network.disabled {
color: @red;
}
#custom-subs {
color: @fg;
margin: 5px 5px 2px 5px;
padding-left: 10px;
padding-right: 12px;
border-radius: 3px;
border-bottom: 2px solid @bg;
border-right: 2px solid @bg;
border-color: @lbg;
background-color: @red;
}
#custom-spacer {
background-color: @yellow;
}
#custom-cliphist {
color: @peach;
margin: 5px 5px 2px 5px;
padding-left: 10px;
padding-right: 12px;
border-radius: 3px;
background-color: @bg;
}
#custom-gpu-temp,
#cpu,
#memory,
#custom-clipboard,
#temperature {
margin: 0px 0px 0px 0px;
padding-left: 10px;
padding-right: 10px;
border-radius: 3px;
color: @fg;
background-color: @bg;
}
#custom-playerctl {
margin: 5px 5px 2px 5px;
padding-left: 10px;
padding-right: 10px;
border-radius: 3px;
color: @fg;
background-color: @bg;
}
#battery,
#backlight,
#bluetooth,
#pulseaudio {
margin-top: 5px;
margin-bottom: 2px;
color: @fg;
background-color: @bg;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
#battery,
#bluetooth {
margin-left: 0px;
margin-right: 5px;
padding-left: 7.5px;
padding-right: 10px;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
#backlight,
#pulseaudio {
margin-right: 0px;
margin-left: 5px;
padding-left: 10px;
padding-right: 7.5px;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
} }
#clock { #clock {
margin: 0px 0px 0px 0px; font-style: italic;
padding-left: 10px; color: #FFC0CB;
padding-right: 10px;
border-radius: 3px;
color: @bg;
background-color: @green;
} }
#taskbar { #battery, #network {
border-radius: 0px 0px 0px 0; color: #FFB6C1;
padding: 0 3px;
margin: 0 0px;
color: #ffffff;
background-color: rgba(120,118,117,0.3);
}
#taskbar button {
border-radius: 0px 0px 0px 0px;
padding: 0 0 0 3px;
margin: 3px 1;
color: #ffffff;
background-color: rgba(120,118,117,0.1);
}
#taskbar button.active {
background-color: rgba(120,118,117,0.8);
} }
#mode { #custom-catgirl-status {
margin: 0px 0px 0px 0px; font-size: 1.1em;
padding-left: 10px; color: #FF69B4;
padding-right: 10px; font-weight: bold;
border-radius: 3px; font-family: "Comic Mono", monospace;
background-color: @bg;
color: @peach;
} }
''; '';
}; };

View file

@ -1,16 +1,18 @@
{ ... }: { ... }: {
{
# machine-id is used by systemd for the journal, if you don't # machine-id is used by systemd for the journal, if you don't
# persist this file you won't be able to easily use journalctl to # persist this file you won't be able to easily use journalctl to
# look at journals for previous boots. # look at journals for previous boots.
environment.etc."machine-id".source = "/nix/persist/etc/machine-id"; environment.etc."machine-id".source = "/nix/persist/etc/machine-id";
# if you want to run an openssh daemon, you may want to store the # if you want to run an openssh daemon, you may want to store the
# host keys across reboots. # host keys across reboots.
# #
# For this to work you will need to create the directory yourself: # For this to work you will need to create the directory yourself:
# $ mkdir /nix/persist/etc/ssh # $ mkdir /nix/persist/etc/ssh
environment.etc."ssh/id_ed25519".source = "/nix/persist/etc/ssh/id_ed25519"; environment.etc."ssh/ssh_host_rsa_key".source = "/nix/persist/etc/ssh/ssh_host_rsa_key";
environment.etc."ssh/id_ed25519.pub".source = "/nix/persist/etc/ssh/id_ed25519.pub"; environment.etc."ssh/ssh_host_rsa_key.pub".source = "/nix/persist/etc/ssh/ssh_host_rsa_key.pub";
environment.etc."ssh/ssh_host_ed25519_key".source = "/nix/persist/etc/ssh/ssh_host_ed25519_key";
environment.etc."ssh/ssh_host_ed25519_key.pub".source = "/nix/persist/etc/ssh/ssh_host_ed25519_key.pub";
} }