wallpaper

This commit is contained in:
Lucy von Overheidt 2025-09-09 20:49:56 +02:00
parent 4348bef5ac
commit 4d269a9e8d
11 changed files with 274 additions and 65 deletions

View file

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

119
modules/firefox.nix Normal file
View file

@ -0,0 +1,119 @@
{ config, pkgs, ... }:
{
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

@ -15,6 +15,9 @@
./hypridle.nix
./fuzzel.nix
./hyfetch.nix
./ssh.nix
./firefox.nix
./wallpaper.nix
];
# TODO please change the username & home directory to your own

View file

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

View file

@ -1,10 +1,15 @@
{ lib, pkgs, ... }: {
{ lib, pkgs, ... }:
let
hx = lib.getExe pkgs.helix;
nix = lib.getExe pkgs.nix;
in
{
programs = {
nushell = {
enable = true;
# The config.nu can be anywhere you want if you like to edit your Nushell with Nu
#configFile.source = ./.../config.nu;
# for editing directly to config.nu
# for editing directly to config.nu
extraConfig = ''
# Common ls aliases and sort them by type and then name
# Inspired by https://github.com/nushell/nushell/issues/7190
@ -31,9 +36,7 @@
# fish completions https://www.nushell.sh/cookbook/external_completers.html#fish-completer
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
| from tsv --flexible --no-infer
}
@ -92,22 +95,24 @@
shellAliases = {
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";
c-init = "nix flake init --template templates#c-hello";
go-hello = "nix flake init --template templates#go-hello";
haskell-hello = "nix flake init --template templates#haskell-hello";
neofetch = "hyfetch";
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";
c-init = "${nix} flake init --template templates#c-hello";
go-hello = "${nix} flake init --template templates#go-hello";
haskell-hello = "${nix} flake init --template templates#haskell-hello";
g = "${lib.getExe pkgs.git}";
};
};
carapace.enable = true;
carapace.enableNushellIntegration = true;
starship = { enable = true; };
starship = {
enable = true;
};
};
}

39
modules/ssh.nix Normal file
View file

@ -0,0 +1,39 @@
{
config,
pkgs,
lib,
...
}:
let
mkMatchBlock =
{ hostname }:
{
inherit hostname;
user = "lucy"; # Use dynamically retrieved user
identityFile = [
"/nix/persist/etc/ssh/ssh_host_ed25519_key"
];
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
'';
};
}

11
modules/wallpaper.nix Normal file
View file

@ -0,0 +1,11 @@
{ ... }:
{
services.wpaperd = {
enable = true;
settings = {
eDP-1 = {
path = ../assets/wp6553608.jpg;
};
};
};
}