Compare commits
589 commits
backup_pre
...
main
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,3 +7,4 @@
|
|||
__pycache__
|
||||
.direnv
|
||||
*.html
|
||||
/result
|
||||
|
|
5
.pre-commit-config.yaml
Normal file
5
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
repos:
|
||||
- repo: https://github.com/gitleaks/gitleaks
|
||||
rev: v8.18.4
|
||||
hooks:
|
||||
- id: gitleaks
|
|
@ -1,3 +0,0 @@
|
|||
indent_type = "Spaces"
|
||||
call_parentheses = "None"
|
||||
collapse_simple_statement = "Always"
|
11
Makefile
Normal file
11
Makefile
Normal file
|
@ -0,0 +1,11 @@
|
|||
.PHONY: default build flathub
|
||||
|
||||
HOST := $(shell hostname)
|
||||
|
||||
default: build
|
||||
|
||||
build:
|
||||
nix build --keep-going .#nixosConfigurations.$(HOST).config.system.build.toplevel
|
||||
|
||||
flathub:
|
||||
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
71
README.org
71
README.org
|
@ -1,6 +1,14 @@
|
|||
#+title: README
|
||||
#+author: Evie Litherland-Smith
|
||||
#+email: evie@xenia.me.uk
|
||||
My personal NixOS + home-manager configuration files.
|
||||
|
||||
To set up without cloning the repository (assuming an already running
|
||||
NixOS system), run:
|
||||
#+begin_src bash
|
||||
sudo nixos-rebuild switch --flake "git+https://git.xenia.me.uk/pixelifytica/nixos.git?ref=main"\#$(hostname)
|
||||
#+end_src
|
||||
|
||||
* Password store setup
|
||||
** Transfer GPG key(s)
|
||||
#+begin_src bash
|
||||
|
@ -8,58 +16,31 @@
|
|||
gpg -a --export > publickeys.asc
|
||||
gpg -a --export-secret-keys > privatekeys.asc
|
||||
# Import key on new machine
|
||||
gpg --import privatekeys.asc
|
||||
gpg --import publickeys.asc
|
||||
gpg --import privatekeys.asc; gpg --import publickeys.asc
|
||||
# Edit (for each key) to set trust
|
||||
gpg --edit-key evie@xenia.me.uk
|
||||
#+end_src
|
||||
** Clone password-store repository
|
||||
#+begin_src bash
|
||||
git -c credential.helper='' clone https://git.xenia.me.uk/pixelifytica/pass $PASSWORD_STORE_DIR
|
||||
git clone https://git.xenia.me.uk/pixelifytica/pass $PASSWORD_STORE_DIR
|
||||
#+end_src
|
||||
|
||||
* Email setup
|
||||
** Passwords for mbsync
|
||||
Run src_bash{mbsync-ensure-pass} to check for passwords required by
|
||||
~mbsync~, and query for missing passwords.
|
||||
|
||||
Static app-specific passwords are stored in ~password-store~, fetch from
|
||||
there to add to secret service.
|
||||
** Proton
|
||||
*** Bridge
|
||||
Run src_bash{protonmail-setup-bridge} to automate this process.
|
||||
Start Proton Mail Bridge application, if needed configure to store
|
||||
using =SecretService= and log in. Application will auto-start with
|
||||
desktop session.
|
||||
|
||||
Run bridge in CLI mode to login, wait for initial sync and get app password
|
||||
#+begin_src bash
|
||||
nix run nixpkgs#protonmail-bridge -- -c
|
||||
# Follow prompts to login and get password
|
||||
#+end_src
|
||||
|
||||
Restart using ~swaymsg~:
|
||||
#+begin_src bash
|
||||
nix shell nixpkgs#protonmail-bridge -c swaymsg exec "protonmail-bridge -n"
|
||||
#+end_src
|
||||
|
||||
**** uidvalidity issue
|
||||
+Remove uid lines from .mbsyncrc (in each mail directory) and delete .uidvalidity, re-run mbsync to fix+
|
||||
Above might be duplicating mail, faster to just delete local maildirs and let them re-sync.
|
||||
|
||||
*** Password
|
||||
Get password from ~protonmail-bridge~, save to ~password-store~:
|
||||
#+begin_src bash
|
||||
pass insert mbsync/$(hostname)/proton
|
||||
# Insert pass at prompt
|
||||
#+end_src
|
||||
** iCloud
|
||||
*** Password
|
||||
If not already done, save password to ~password-store~:
|
||||
#+begin_src bash
|
||||
pass insert mbsync/$(hostname)/icloud
|
||||
# Insert pass at prompt
|
||||
#+end_src
|
||||
This will be synced across devices so only needs doing once
|
||||
Use password from Bridge for ~mbsync~.
|
||||
** Outlook
|
||||
*** Password
|
||||
If not already done, save password to ~password-store~:
|
||||
#+begin_src bash
|
||||
pass insert mbsync/$(hostname)/outlook
|
||||
# Insert pass at prompt
|
||||
#+end_src
|
||||
This will be synced across devices so only needs doing once
|
||||
*** Configuration
|
||||
*** Davmail
|
||||
Run src_bash{davmail-setup} to automate this process.
|
||||
|
||||
On first run (or if token expires), stop systemd service and run manually to complete manual auth. Token will stay valid for a little while (no idea how long specifically).
|
||||
|
@ -71,3 +52,11 @@ On first run (or if token expires), stop systemd service and run manually to com
|
|||
# Restart again so that service picks up available ports
|
||||
systemctl --user restart davmail.service
|
||||
#+end_src
|
||||
|
||||
* Flathub setup
|
||||
#+begin_src bash
|
||||
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
#+end_src
|
||||
|
||||
* Further reading:
|
||||
- https://nixos.org/
|
||||
|
|
203
flake.lock
203
flake.lock
|
@ -5,11 +5,11 @@
|
|||
"fromYaml": "fromYaml"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709025227,
|
||||
"narHash": "sha256-KXcORItjYJTdEO/BlBd0Uym1Xa3eBu43uvpFiWjJOdY=",
|
||||
"lastModified": 1708890466,
|
||||
"narHash": "sha256-LlrC09LoPi8OPYOGPXegD72v+//VapgAqhbOFS3i8sc=",
|
||||
"owner": "SenchoPens",
|
||||
"repo": "base16.nix",
|
||||
"rev": "4e9b16c8b44958bc6bf46d99c3bb1b59c9c9c764",
|
||||
"rev": "665b3c6748534eb766c777298721cece9453fdae",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -18,6 +18,118 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"base16-fish": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1622559957,
|
||||
"narHash": "sha256-PebymhVYbL8trDVVXxCvZgc0S5VxI7I1Hv4RMSquTpA=",
|
||||
"owner": "tomyun",
|
||||
"repo": "base16-fish",
|
||||
"rev": "2f6dd973a9075dabccd26f1cded09508180bf5fe",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "tomyun",
|
||||
"repo": "base16-fish",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"base16-foot": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1696725948,
|
||||
"narHash": "sha256-65bz2bUL/yzZ1c8/GQASnoiGwaF8DczlxJtzik1c0AU=",
|
||||
"owner": "tinted-theming",
|
||||
"repo": "base16-foot",
|
||||
"rev": "eedbcfa30de0a4baa03e99f5e3ceb5535c2755ce",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "tinted-theming",
|
||||
"repo": "base16-foot",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"base16-helix": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1696727917,
|
||||
"narHash": "sha256-FVrbPk+NtMra0jtlC5oxyNchbm8FosmvXIatkRbYy1g=",
|
||||
"owner": "tinted-theming",
|
||||
"repo": "base16-helix",
|
||||
"rev": "dbe1480d99fe80f08df7970e471fac24c05f2ddb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "tinted-theming",
|
||||
"repo": "base16-helix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"base16-kitty": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1665001328,
|
||||
"narHash": "sha256-aRaizTYPpuWEcvoYE9U+YRX+Wsc8+iG0guQJbvxEdJY=",
|
||||
"owner": "kdrag0n",
|
||||
"repo": "base16-kitty",
|
||||
"rev": "06bb401fa9a0ffb84365905ffbb959ae5bf40805",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "kdrag0n",
|
||||
"repo": "base16-kitty",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"base16-tmux": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1696725902,
|
||||
"narHash": "sha256-wDPg5elZPcQpu7Df0lI5O8Jv4A3T6jUQIVg63KDU+3Q=",
|
||||
"owner": "tinted-theming",
|
||||
"repo": "base16-tmux",
|
||||
"rev": "c02050bebb60dbb20cb433cd4d8ce668ecc11ba7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "tinted-theming",
|
||||
"repo": "base16-tmux",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"base16-vim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1663659192,
|
||||
"narHash": "sha256-uJvaYYDMXvoo0fhBZUhN8WBXeJ87SRgof6GEK2efFT0=",
|
||||
"owner": "chriskempson",
|
||||
"repo": "base16-vim",
|
||||
"rev": "3be3cd82cd31acfcab9a41bad853d9c68d30478d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "chriskempson",
|
||||
"repo": "base16-vim",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1673956053,
|
||||
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"fromYaml": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -34,6 +146,23 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"gnome-shell": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1713702291,
|
||||
"narHash": "sha256-zYP1ehjtcV8fo+c+JFfkAqktZ384Y+y779fzmR9lQAU=",
|
||||
"owner": "GNOME",
|
||||
"repo": "gnome-shell",
|
||||
"rev": "0d0aadf013f78a7f7f1dc984d0d812971864b934",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "GNOME",
|
||||
"ref": "46.1",
|
||||
"repo": "gnome-shell",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -41,16 +170,16 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1714043624,
|
||||
"narHash": "sha256-Xn2r0Jv95TswvPlvamCC46wwNo8ALjRCMBJbGykdhcM=",
|
||||
"lastModified": 1726989464,
|
||||
"narHash": "sha256-Vl+WVTJwutXkimwGprnEtXc/s/s8sMuXzqXaspIGlwM=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "86853e31dc1b62c6eeed11c667e8cdd0285d4411",
|
||||
"rev": "2f23fa308a7c067e52dfcc30a0758f47043ec176",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "release-23.11",
|
||||
"ref": "release-24.05",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
|
@ -60,11 +189,11 @@
|
|||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1710589819,
|
||||
"narHash": "sha256-fm69qycthevGExpbudpuCCSEBPuCOk/+d15382c37oE=",
|
||||
"lastModified": 1730274547,
|
||||
"narHash": "sha256-34sNwbLNuE6l7jsBkBRUMRahoZc63lCsCa+PoZd/8W8=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "6e305fa1d05a97343d47f0b6865e10a870fc8d4e",
|
||||
"revCount": 10,
|
||||
"rev": "49828459e58b6987d2738b74c085cecb963355ab",
|
||||
"revCount": 19,
|
||||
"type": "git",
|
||||
"url": "https://git.xenia.me.uk/pixelifytica/iosevka.git"
|
||||
},
|
||||
|
@ -75,11 +204,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1710451336,
|
||||
"narHash": "sha256-pP86Pcfu3BrAvRO7R64x7hs+GaQrjFes+mEPowCfkxY=",
|
||||
"lastModified": 1728888510,
|
||||
"narHash": "sha256-nsNdSldaAyu6PE3YUA+YQLqUDJh+gRbBooMMekZJwvI=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d691274a972b3165335d261cc4671335f5c67de9",
|
||||
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -91,42 +220,58 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1715106579,
|
||||
"narHash": "sha256-gZMgKEGiK6YrwGBiccZ1gemiUwjsZ1Zv49KYOgmX2fY=",
|
||||
"lastModified": 1730883749,
|
||||
"narHash": "sha256-mwrFF0vElHJP8X3pFCByJR365Q2463ATp2qGIrDUdlE=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8be0d8a1ed4f96d99b09aa616e2afd47acc3da89",
|
||||
"rev": "dba414932936fde69f0606b4f1d87c5bc0003ede",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-23.11",
|
||||
"ref": "nixos-24.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"base16": "base16",
|
||||
"home-manager": "home-manager",
|
||||
"iosevka-custom": "iosevka-custom",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"tt-schemes": "tt-schemes"
|
||||
"stylix": "stylix"
|
||||
}
|
||||
},
|
||||
"tt-schemes": {
|
||||
"flake": false,
|
||||
"stylix": {
|
||||
"inputs": {
|
||||
"base16": "base16",
|
||||
"base16-fish": "base16-fish",
|
||||
"base16-foot": "base16-foot",
|
||||
"base16-helix": "base16-helix",
|
||||
"base16-kitty": "base16-kitty",
|
||||
"base16-tmux": "base16-tmux",
|
||||
"base16-vim": "base16-vim",
|
||||
"flake-compat": "flake-compat",
|
||||
"gnome-shell": "gnome-shell",
|
||||
"home-manager": [
|
||||
"home-manager"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1713388094,
|
||||
"narHash": "sha256-wcotm0Ek2ISn8iJBzEujJQdcPLKWrPAOZ/dS/DLKafw=",
|
||||
"owner": "tinted-theming",
|
||||
"repo": "schemes",
|
||||
"rev": "abcf2a055ae69f1bf047463332f83db3125aa8a5",
|
||||
"lastModified": 1718122552,
|
||||
"narHash": "sha256-A+dBkSwp8ssHKV/WyXb9uqIYrHBqHvtSedU24Lq9lqw=",
|
||||
"owner": "danth",
|
||||
"repo": "stylix",
|
||||
"rev": "e59d2c1725b237c362e4a62f5722f5b268d566c7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "tinted-theming",
|
||||
"repo": "schemes",
|
||||
"owner": "danth",
|
||||
"ref": "release-24.05",
|
||||
"repo": "stylix",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
|
|
278
flake.nix
278
flake.nix
|
@ -2,245 +2,73 @@
|
|||
description = "Evie's machine configurations";
|
||||
|
||||
nixConfig = {
|
||||
extra-substituters = ["https://nix.xenia.me.uk"];
|
||||
extra-trusted-public-keys = ["nix.xenia.me.uk:tlgwOaG5KMLjQUk2YaErS8mAG69ZCr3PaHXZYi+Y5eI="];
|
||||
extra-substituters = [ "https://nix.xenia.me.uk" ];
|
||||
extra-trusted-public-keys = [ "nix.xenia.me.uk:tlgwOaG5KMLjQUk2YaErS8mAG69ZCr3PaHXZYi+Y5eI=" ];
|
||||
};
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
iosevka-custom.url = "git+https://git.xenia.me.uk/pixelifytica/iosevka.git";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-23.11";
|
||||
url = "github:nix-community/home-manager/release-24.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
iosevka-custom.url = "git+https://git.xenia.me.uk/pixelifytica/iosevka.git";
|
||||
base16.url = "github:SenchoPens/base16.nix";
|
||||
tt-schemes = {
|
||||
url = "github:tinted-theming/schemes";
|
||||
flake = false;
|
||||
stylix = {
|
||||
url = "github:danth/stylix/release-24.05";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
home-manager.follows = "home-manager";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
iosevka-custom,
|
||||
base16,
|
||||
tt-schemes,
|
||||
...
|
||||
}: let
|
||||
systemConfig = {
|
||||
hostName ? "Atlas",
|
||||
user ? "pixelifytica",
|
||||
system ? "x86_64-linux",
|
||||
stateVersion ? "23.05",
|
||||
systemModules ? [],
|
||||
homeModules ? [],
|
||||
}: let
|
||||
defaultUserShell = "zsh";
|
||||
specialArgs = {
|
||||
inherit hostName user;
|
||||
accentColour = "base07"; # catppuccin lavender
|
||||
catppuccinVariant = "Mocha";
|
||||
fonts = with import nixpkgs {inherit system;};
|
||||
with iosevka-custom.outputs; rec {
|
||||
sizes = {
|
||||
applications = 12;
|
||||
desktop = 10;
|
||||
popups = 14;
|
||||
terminal = 12;
|
||||
outputs =
|
||||
inputs@{ nixpkgs, ... }:
|
||||
{
|
||||
nixosConfigurations = {
|
||||
## Server
|
||||
Legion = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
username = "pixelifytica";
|
||||
hostName = "Legion";
|
||||
};
|
||||
serif = sansSerif;
|
||||
sansSerif = {
|
||||
name = names."iosevka-custom-aile";
|
||||
package = packages.${system}."iosevka-custom-aile";
|
||||
modules = [ ./system/default.nix ];
|
||||
};
|
||||
## Personal
|
||||
Vanguard = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
username = "pixelifytica";
|
||||
hostName = "Vanguard";
|
||||
};
|
||||
monospace = {
|
||||
name = names."iosevka-custom-nerdfont";
|
||||
package = packages.${system}."iosevka-custom-nerdfont";
|
||||
modules = [ ./system/default.nix ];
|
||||
};
|
||||
Northstar = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
username = "pixelifytica";
|
||||
hostName = "Northstar";
|
||||
};
|
||||
emoji = {
|
||||
name = "Noto Color Emoji";
|
||||
package = noto-fonts-emoji;
|
||||
modules = [ ./system/default.nix ];
|
||||
};
|
||||
## Work
|
||||
Tone = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
username = "elitherl";
|
||||
hostName = "Tone";
|
||||
};
|
||||
modules = [ ./system/default.nix ];
|
||||
};
|
||||
Ronin = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
username = "elitherl";
|
||||
hostName = "Ronin";
|
||||
};
|
||||
modules = [ ./system/default.nix ];
|
||||
};
|
||||
};
|
||||
in
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system specialArgs;
|
||||
modules =
|
||||
[
|
||||
home-manager.nixosModules.home-manager
|
||||
base16.nixosModule
|
||||
./hosts/${hostName}/configuration.nix
|
||||
./hosts/${hostName}/hardware-configuration.nix
|
||||
./system/default.nix
|
||||
({
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
catppuccinVariant ? "Mocha",
|
||||
...
|
||||
}: {
|
||||
scheme = "${tt-schemes}/base16/catppuccin-${lib.strings.toLower catppuccinVariant}.yaml";
|
||||
nix = {
|
||||
enable = true;
|
||||
package = pkgs.nixVersions.unstable;
|
||||
settings = {
|
||||
cores = 0;
|
||||
max-jobs = "auto";
|
||||
trusted-users = ["root" user];
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
channel.enable = true;
|
||||
nixPath = ["nixpkgs=${pkgs.path}"];
|
||||
registry.nixpkgs.flake = nixpkgs;
|
||||
gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
optimise.automatic = true;
|
||||
extraOptions = ''
|
||||
keep-outputs = false
|
||||
keep-derivations = false
|
||||
min-free = ${toString (100 * 1024 * 1024)}
|
||||
max-free = ${toString (1024 * 1024 * 1024)}
|
||||
'';
|
||||
};
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
networking = {inherit hostName;};
|
||||
programs.${defaultUserShell}.enable = true;
|
||||
system = {inherit stateVersion;};
|
||||
users = {
|
||||
defaultUserShell = pkgs.${defaultUserShell};
|
||||
users = let
|
||||
authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINI1dWlS16Keil0MGPWmMsBzx8F9ylfz+fRwxUr8/tZ/ ion"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC4M1zV3yLMMI1tYwdY9QDXJDlOBugm7UXKC+Xk89yHq pixelifytica@Vanguard"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICPypUUGVAdpl0SHrUDVw0RureuFNsljrXQvrf0uc055 pixelifytica@Northstar"
|
||||
];
|
||||
in {
|
||||
root.openssh = {inherit authorizedKeys;};
|
||||
${user} = {
|
||||
group = "users";
|
||||
isNormalUser = true;
|
||||
description = "Evie Litherland-Smith";
|
||||
extraGroups = ["networkmanager" "wheel" "video" "input" "uinput"];
|
||||
initialHashedPassword = "$y$j9T$tHIPQt09Kf3KH2eIRze3g/$2mwSlcq27DTGvHNPJ5EP9/1CfL3bXP0F6oS/Vuffmn3";
|
||||
openssh = {inherit authorizedKeys;};
|
||||
};
|
||||
};
|
||||
};
|
||||
home-manager = {
|
||||
extraSpecialArgs = {inherit (config) scheme;} // specialArgs;
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users = {
|
||||
root = {
|
||||
imports = [./home/default.nix];
|
||||
home = {
|
||||
inherit stateVersion;
|
||||
username = "root";
|
||||
homeDirectory = "/root";
|
||||
};
|
||||
programs.home-manager.enable = true;
|
||||
};
|
||||
${user} = let
|
||||
username = user;
|
||||
homeDirectory = "/home/${user}";
|
||||
in {
|
||||
imports =
|
||||
[./hosts/${hostName}/home.nix ./home/default.nix]
|
||||
++ homeModules;
|
||||
home = {inherit username homeDirectory stateVersion;};
|
||||
programs.home-manager.enable = true;
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
extraConfig = {
|
||||
XDG_PROJECTS_DIR = "${homeDirectory}/Projects";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
})
|
||||
]
|
||||
++ systemModules;
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
## Server
|
||||
|
||||
Legion = systemConfig {
|
||||
hostName = "Legion";
|
||||
systemModules = [
|
||||
./services/caddy.nix
|
||||
./services/forgejo.nix
|
||||
./services/grafana.nix
|
||||
./services/minecraft.nix
|
||||
./services/nix-serve.nix
|
||||
./services/radicale.nix
|
||||
./services/sshd.nix
|
||||
./services/syncthing.nix
|
||||
];
|
||||
homeModules = [./home/default.nix];
|
||||
};
|
||||
|
||||
## Personal
|
||||
|
||||
Northstar = systemConfig {
|
||||
hostName = "Northstar";
|
||||
systemModules = [
|
||||
./system/laptop.nix
|
||||
./system/sway.nix
|
||||
];
|
||||
homeModules = [
|
||||
./home/sway/default.nix
|
||||
./home/email/work.nix
|
||||
];
|
||||
};
|
||||
|
||||
Vanguard = systemConfig {
|
||||
hostName = "Vanguard";
|
||||
systemModules = [
|
||||
./system/desktop.nix
|
||||
./system/games.nix
|
||||
./system/sway.nix
|
||||
];
|
||||
homeModules = [
|
||||
./home/sway/default.nix
|
||||
./home/email/work.nix
|
||||
];
|
||||
};
|
||||
|
||||
## Work
|
||||
|
||||
Ronin = systemConfig {
|
||||
hostName = "Ronin";
|
||||
user = "elitherl";
|
||||
systemModules = [
|
||||
./system/laptop.nix
|
||||
./system/sway.nix
|
||||
];
|
||||
homeModules = [
|
||||
./home/sway/default.nix
|
||||
./home/email/work.nix
|
||||
];
|
||||
};
|
||||
|
||||
Scorch = systemConfig {
|
||||
hostName = "Scorch";
|
||||
user = "elitherl";
|
||||
systemModules = [
|
||||
./system/desktop.nix
|
||||
./system/sway.nix
|
||||
];
|
||||
homeModules = [
|
||||
./home/sway/default.nix
|
||||
./home/email/work.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,75 +0,0 @@
|
|||
[colors.primary]
|
||||
background = "#1E1E2E"
|
||||
foreground = "#CDD6F4"
|
||||
dim_foreground = "#CDD6F4"
|
||||
bright_foreground = "#CDD6F4"
|
||||
|
||||
[colors.cursor]
|
||||
text = "#1E1E2E"
|
||||
cursor = "#F5E0DC"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
text = "#1E1E2E"
|
||||
cursor = "#B4BEFE"
|
||||
|
||||
[colors.search.matches]
|
||||
foreground = "#1E1E2E"
|
||||
background = "#A6ADC8"
|
||||
|
||||
[colors.search.focused_match]
|
||||
foreground = "#1E1E2E"
|
||||
background = "#A6E3A1"
|
||||
|
||||
[colors.footer_bar]
|
||||
foreground = "#1E1E2E"
|
||||
background = "#A6ADC8"
|
||||
|
||||
[colors.hints.start]
|
||||
foreground = "#1E1E2E"
|
||||
background = "#F9E2AF"
|
||||
|
||||
[colors.hints.end]
|
||||
foreground = "#1E1E2E"
|
||||
background = "#A6ADC8"
|
||||
|
||||
[colors.selection]
|
||||
text = "#1E1E2E"
|
||||
background = "#F5E0DC"
|
||||
|
||||
[colors.normal]
|
||||
black = "#45475A"
|
||||
red = "#F38BA8"
|
||||
green = "#A6E3A1"
|
||||
yellow = "#F9E2AF"
|
||||
blue = "#89B4FA"
|
||||
magenta = "#F5C2E7"
|
||||
cyan = "#94E2D5"
|
||||
white = "#BAC2DE"
|
||||
|
||||
[colors.bright]
|
||||
black = "#585B70"
|
||||
red = "#F38BA8"
|
||||
green = "#A6E3A1"
|
||||
yellow = "#F9E2AF"
|
||||
blue = "#89B4FA"
|
||||
magenta = "#F5C2E7"
|
||||
cyan = "#94E2D5"
|
||||
white = "#A6ADC8"
|
||||
|
||||
[colors.dim]
|
||||
black = "#45475A"
|
||||
red = "#F38BA8"
|
||||
green = "#A6E3A1"
|
||||
yellow = "#F9E2AF"
|
||||
blue = "#89B4FA"
|
||||
magenta = "#F5C2E7"
|
||||
cyan = "#94E2D5"
|
||||
white = "#BAC2DE"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 16
|
||||
color = "#FAB387"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 17
|
||||
color = "#F5E0DC"
|
|
@ -1,30 +0,0 @@
|
|||
{fonts, ...}: {
|
||||
programs.alacritty = let
|
||||
catppuccin-mocha = builtins.fromTOML (builtins.readFile ./catppuccin-mocha.toml);
|
||||
in {
|
||||
enable = true;
|
||||
settings =
|
||||
{
|
||||
font = {
|
||||
size = fonts.sizes.applications;
|
||||
normal = {
|
||||
family = fonts.monospace.name;
|
||||
style = "Regular";
|
||||
};
|
||||
};
|
||||
window = {
|
||||
opacity = 0.8;
|
||||
dynamic_title = true;
|
||||
padding = {
|
||||
x = 10;
|
||||
y = 10;
|
||||
};
|
||||
decorations = "none";
|
||||
};
|
||||
live_config_reload = false;
|
||||
selection.save_to_clipboard = true;
|
||||
mouse.hide_when_typing = false;
|
||||
}
|
||||
// catppuccin-mocha;
|
||||
};
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
scheme,
|
||||
accentColour ? "base07",
|
||||
...
|
||||
}: {
|
||||
services.avizo = {
|
||||
enable = true;
|
||||
settings.default = with scheme; let
|
||||
accent = {
|
||||
r = scheme."${accentColour}-rgb-r";
|
||||
g = scheme."${accentColour}-rgb-g";
|
||||
b = scheme."${accentColour}-rgb-b";
|
||||
};
|
||||
in {
|
||||
background = "rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, 0.8)";
|
||||
bar-bg-color = "rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, 0.8)";
|
||||
bar-fg-color = "rgba(${base05-rgb-r}, ${base05-rgb-g}, ${base05-rgb-b}, 1.0)";
|
||||
border-color = "rgba(${accent.r}, ${accent.g}, ${accent.b}, 1.0)";
|
||||
image-opacity = "1.0";
|
||||
};
|
||||
};
|
||||
}
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
catppuccinVariant ? "Mocha",
|
||||
...
|
||||
}: {
|
||||
xdg.configFile = let
|
||||
variants = ["Latte" "Frappe" "Macchiato" "Mocha"];
|
||||
mkVariant = variant: let
|
||||
fname = "catppuccin${variant}.tmTheme";
|
||||
in {
|
||||
name = "bat/themes/${fname}";
|
||||
value = {source = ./. + "/${fname}";};
|
||||
};
|
||||
in
|
||||
builtins.listToAttrs
|
||||
(lib.lists.forEach variants mkVariant);
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config.theme = "catppuccin${catppuccinVariant}";
|
||||
};
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
{
|
||||
scheme,
|
||||
accentColour ? "base07",
|
||||
...
|
||||
}: {
|
||||
programs.bottom = {
|
||||
enable = true;
|
||||
settings.colors = with scheme.withHashtag; let
|
||||
rainbow = [red yellow green cyan blue magenta];
|
||||
in {
|
||||
table_header_color = base05;
|
||||
all_cpu_color = base05;
|
||||
avg_cpu_color = base05;
|
||||
cpu_core_colors = rainbow;
|
||||
ram_color = red;
|
||||
cache_color = green;
|
||||
swap_color = blue;
|
||||
rx_color = green;
|
||||
tx_color = blue;
|
||||
widget_title_color = scheme.withHashtag.${accentColour};
|
||||
border_color = base02;
|
||||
highlighted_border_color = scheme.withHashtag.${accentColour};
|
||||
text_color = base05;
|
||||
graph_color = base04;
|
||||
cursor_color = base02;
|
||||
selected_text_color = base05;
|
||||
selected_bg_color = base01;
|
||||
high_battery_color = green;
|
||||
medium_battery_color = yellow;
|
||||
low_battery_color = red;
|
||||
gpu_core_colors = rainbow;
|
||||
arc_color = cyan;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./bat/default.nix
|
||||
./git/default.nix
|
||||
./ssh/default.nix
|
||||
./zsh/default.nix
|
||||
./starship/default.nix
|
||||
./bottom/default.nix
|
||||
./emacs/default.nix
|
||||
./scripts/default.nix
|
||||
];
|
||||
programs = {
|
||||
bash.enable = true;
|
||||
carapace.enable = true;
|
||||
eza = {
|
||||
enable = true;
|
||||
enableAliases = true;
|
||||
git = true;
|
||||
icons = true;
|
||||
extraOptions = ["--octal-permissions"];
|
||||
};
|
||||
readline = {
|
||||
enable = true;
|
||||
includeSystemConfig = true;
|
||||
extraConfig = ''
|
||||
set completion-ignore-case On
|
||||
'';
|
||||
};
|
||||
direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
fzf = {
|
||||
enable = true;
|
||||
defaultCommand = "${pkgs.fd}/bin/fd --type f";
|
||||
changeDirWidgetCommand = "${pkgs.fd}/bin/fd --type d";
|
||||
fileWidgetCommand = "${pkgs.fd}/bin/fd --type f";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,87 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
scheme,
|
||||
catppuccinVariant ? "Mocha",
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./default.nix
|
||||
./email/default.nix
|
||||
./password-store/default.nix
|
||||
./wlogout/default.nix
|
||||
./waybar/default.nix
|
||||
./rofi/default.nix
|
||||
./swaylock/default.nix
|
||||
./swaync/default.nix
|
||||
./avizo/default.nix
|
||||
./alacritty/default.nix
|
||||
./emacs/default.nix
|
||||
./nyxt/default.nix
|
||||
./obs/default.nix
|
||||
./cava/default.nix
|
||||
./prog/default.nix
|
||||
];
|
||||
programs.rofi.terminal = "${config.programs.alacritty.package}/bin/alacritty";
|
||||
services = {
|
||||
gpg-agent.pinentryFlavor = "gtk2";
|
||||
avizo.enable = true;
|
||||
syncthing.enable = true;
|
||||
udiskie = {
|
||||
enable = true;
|
||||
notify = true;
|
||||
automount = true;
|
||||
tray = "never";
|
||||
};
|
||||
};
|
||||
gtk = with lib.strings; let
|
||||
accent = "Lavender";
|
||||
size = "Standard";
|
||||
in {
|
||||
enable = true;
|
||||
iconTheme = {
|
||||
package = pkgs.catppuccin-papirus-folders.override {
|
||||
accent = toLower accent;
|
||||
flavor = toLower catppuccinVariant;
|
||||
};
|
||||
name = "Papirus-Dark";
|
||||
};
|
||||
cursorTheme = let
|
||||
variant = "${lib.strings.toLower catppuccinVariant}Dark";
|
||||
in {
|
||||
package = pkgs.catppuccin-cursors.${variant};
|
||||
name = "Catppuccin-${catppuccinVariant}-Dark-Cursors";
|
||||
size = 32;
|
||||
};
|
||||
theme = {
|
||||
package = with lib.strings;
|
||||
pkgs.catppuccin-gtk.override {
|
||||
accents = [(toLower accent)];
|
||||
size = toLower size;
|
||||
variant = toLower catppuccinVariant;
|
||||
};
|
||||
name = "Catppuccin-${catppuccinVariant}-${size}-${accent}-Dark";
|
||||
};
|
||||
};
|
||||
xresources.properties = with scheme.withHashtag; {
|
||||
"*background" = base00;
|
||||
"*foreground" = base05;
|
||||
"*color0" = base00;
|
||||
"*color1" = red;
|
||||
"*color2" = green;
|
||||
"*color3" = yellow;
|
||||
"*color4" = blue;
|
||||
"*color5" = magenta;
|
||||
"*color6" = cyan;
|
||||
"*color7" = base04;
|
||||
"*color8" = base01;
|
||||
"*color9" = red;
|
||||
"*color10" = green;
|
||||
"*color11" = yellow;
|
||||
"*color12" = blue;
|
||||
"*color13" = magenta;
|
||||
"*color14" = cyan;
|
||||
"*color15" = base05;
|
||||
};
|
||||
}
|
|
@ -1,172 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
fonts,
|
||||
...
|
||||
}: {
|
||||
imports = [../git/default.nix];
|
||||
programs.git.extraConfig.core.editor = "$EDITOR";
|
||||
programs.emacs = {
|
||||
# Clone emacs config from https://git.xenia.me.uk/pixelifytica/emacs.git
|
||||
# git clone https://git.xenia.me.uk/pixelifytica/emacs.git ~/.config/emacs
|
||||
enable = true;
|
||||
package = pkgs.emacs29-pgtk;
|
||||
extraConfig = let
|
||||
shell = "${pkgs.zsh}/bin/zsh";
|
||||
font = "${fonts.monospace.name}-${toString fonts.sizes.applications}";
|
||||
fixed-font-family = "${fonts.monospace.name}";
|
||||
variable-font-family = "${fonts.sansSerif.name}";
|
||||
alpha = "80";
|
||||
in ''
|
||||
(customize-set-variable 'shell-file-name "${shell}")
|
||||
(add-to-list 'initial-frame-alist '(font . "${font}"))
|
||||
(add-to-list 'default-frame-alist '(font . "${font}"))
|
||||
(set-face-attribute 'fixed-pitch nil :family "${fixed-font-family}")
|
||||
(set-face-attribute 'fixed-pitch-serif nil :family "${fixed-font-family}")
|
||||
(set-face-attribute 'variable-pitch nil :family "${variable-font-family}")
|
||||
(add-to-list 'initial-frame-alist '(alpha-background . ${alpha}))
|
||||
(add-to-list 'default-frame-alist '(alpha-background . ${alpha}))
|
||||
(scroll-bar-mode -1)
|
||||
(tab-bar-mode -1)
|
||||
(menu-bar-mode -1)
|
||||
'';
|
||||
extraPackages = epkgs:
|
||||
with epkgs; [
|
||||
# Theme
|
||||
base16-theme
|
||||
|
||||
# UI
|
||||
all-the-icons
|
||||
nerd-icons
|
||||
nerd-icons-completion
|
||||
nerd-icons-corfu
|
||||
nerd-icons-dired
|
||||
nerd-icons-ibuffer
|
||||
doom-modeline
|
||||
diminish
|
||||
ligature
|
||||
page-break-lines
|
||||
helpful
|
||||
which-key
|
||||
link-hint
|
||||
diff-hl
|
||||
|
||||
# Completion
|
||||
cape
|
||||
consult
|
||||
consult-eglot
|
||||
consult-flyspell
|
||||
corfu
|
||||
corfu-terminal
|
||||
embark
|
||||
embark-consult
|
||||
marginalia
|
||||
orderless
|
||||
vertico
|
||||
|
||||
# Snippets
|
||||
tempel
|
||||
tempel-collection
|
||||
|
||||
# spell-checking
|
||||
flyspell-correct
|
||||
|
||||
# password-store
|
||||
pass
|
||||
password-store
|
||||
password-store-otp
|
||||
|
||||
# IDE
|
||||
treesit-grammars.with-all-grammars
|
||||
treesit-auto
|
||||
flymake-popon
|
||||
flymake-collection
|
||||
flymake-eslint
|
||||
flymake-shellcheck
|
||||
apheleia
|
||||
direnv
|
||||
rainbow-delimiters
|
||||
aggressive-indent
|
||||
nix-mode
|
||||
python-docstring
|
||||
|
||||
# Media
|
||||
emms
|
||||
|
||||
# org-mode
|
||||
org-roam
|
||||
org-noter
|
||||
org-journal
|
||||
|
||||
# org-cite
|
||||
citar
|
||||
citar-embark
|
||||
|
||||
# org-plot
|
||||
gnuplot
|
||||
|
||||
# org-mode HTML export
|
||||
htmlize
|
||||
|
||||
# Projects
|
||||
ibuffer-project
|
||||
magit
|
||||
forge
|
||||
|
||||
# Writing
|
||||
markdown-mode
|
||||
pandoc-mode
|
||||
auctex
|
||||
auctex-latexmk
|
||||
latex-preview-pane
|
||||
|
||||
# Email
|
||||
mu4e
|
||||
|
||||
# RSS feeds
|
||||
elfeed
|
||||
elfeed-org
|
||||
elfeed-tube
|
||||
];
|
||||
};
|
||||
services = {
|
||||
emacs = {
|
||||
enable = true;
|
||||
package = config.programs.emacs.finalPackage;
|
||||
defaultEditor = true;
|
||||
client.enable = true;
|
||||
socketActivation.enable = true;
|
||||
startWithUserSession = false;
|
||||
};
|
||||
git-sync.repositories = with config.xdg.userDirs; {
|
||||
org = {
|
||||
path = "${documents}/Org";
|
||||
uri = "git+https://git.xenia.me.uk/xenia/org.git";
|
||||
};
|
||||
references = {
|
||||
path = "${documents}/References";
|
||||
uri = "git+https://git.xenia.me.uk/xenia/references.git";
|
||||
};
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
# Emacs requirements
|
||||
imagemagick
|
||||
languagetool
|
||||
wordnet
|
||||
gnuplot # For org-plot
|
||||
graphviz # For org-roam graph
|
||||
mp3info # For EMMS
|
||||
|
||||
# Language-specific requirements
|
||||
sqlite
|
||||
pandoc
|
||||
ghostscript
|
||||
poppler_utils
|
||||
|
||||
# Customised LaTeX install
|
||||
(texlive.combine {
|
||||
inherit (pkgs.texlive) scheme-medium dvisvgm dvipng wrapfig amsmath ulem hyperref capt-of;
|
||||
})
|
||||
];
|
||||
}
|
|
@ -1,81 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
hostName,
|
||||
...
|
||||
}: {
|
||||
accounts.email = {
|
||||
maildirBasePath = "Mail";
|
||||
accounts = let
|
||||
realName = "Evie Litherland-Smith";
|
||||
in {
|
||||
proton = let
|
||||
host = "127.0.0.1";
|
||||
tls.enable = false;
|
||||
in rec {
|
||||
inherit realName;
|
||||
primary = true;
|
||||
maildir.path = "Proton";
|
||||
imap = {
|
||||
inherit host tls;
|
||||
port = 1143;
|
||||
};
|
||||
smtp = {
|
||||
inherit host tls;
|
||||
port = 1025;
|
||||
};
|
||||
address = "e.litherlandsmith@proton.me";
|
||||
aliases = ["evie@xenia.me.uk" "evie@litherlandsmith.slmail.me"];
|
||||
userName = address;
|
||||
passwordCommand = "${pkgs.pass}/bin/pass show mbsync/${hostName}/proton | head -n1";
|
||||
mu.enable = true;
|
||||
msmtp = {
|
||||
enable = true;
|
||||
extraConfig = {
|
||||
tls = "off";
|
||||
auth = "login";
|
||||
};
|
||||
};
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "both";
|
||||
expunge = "both";
|
||||
remove = "both";
|
||||
patterns = ["*" "!All Mail" "!Labels*" "!Starred" "!Recovered Messages"];
|
||||
subFolders = "Verbatim";
|
||||
extraConfig.account.AuthMechs = "LOGIN";
|
||||
};
|
||||
};
|
||||
icloud = rec {
|
||||
inherit realName;
|
||||
primary = false;
|
||||
maildir.path = "iCloud";
|
||||
imap.host = "imap.mail.me.com";
|
||||
smtp.host = "smtp.mail.me.com";
|
||||
address = "e.litherlandsmith@icloud.com";
|
||||
userName = address;
|
||||
passwordCommand = "${pkgs.pass}/bin/pass show mbsync/${hostName}/icloud | head -n1";
|
||||
mu.enable = true;
|
||||
msmtp.enable = true;
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "both";
|
||||
expunge = "both";
|
||||
remove = "both";
|
||||
patterns = ["*" "!Notes"];
|
||||
subFolders = "Verbatim";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
programs = {
|
||||
mu.enable = true;
|
||||
msmtp.enable = true;
|
||||
mbsync = {
|
||||
enable = true;
|
||||
groups.inboxes = {
|
||||
proton = ["INBOX"];
|
||||
icloud = ["INBOX"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,69 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
hostName,
|
||||
...
|
||||
}: {
|
||||
imports = [./default.nix];
|
||||
accounts.email.accounts.outlook = let
|
||||
host = "127.0.0.1";
|
||||
tls.enable = false;
|
||||
in rec {
|
||||
inherit (config.accounts.email.accounts.proton) realName;
|
||||
primary = false;
|
||||
maildir.path = "Outlook";
|
||||
imap = {
|
||||
inherit host tls;
|
||||
port = 1144;
|
||||
};
|
||||
smtp = {
|
||||
inherit host tls;
|
||||
port = 1026;
|
||||
};
|
||||
address = "evie.litherland-smith@ukaea.uk";
|
||||
aliases = ["elitherl@jet.uk"];
|
||||
userName = address;
|
||||
passwordCommand = "${pkgs.pass}/bin/pass show mbsync/${hostName}/outlook | head -n1";
|
||||
mu.enable = true;
|
||||
msmtp = {
|
||||
enable = true;
|
||||
extraConfig = {
|
||||
tls = "off";
|
||||
auth = "login";
|
||||
};
|
||||
};
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "both";
|
||||
expunge = "both";
|
||||
remove = "both";
|
||||
patterns = [
|
||||
"*"
|
||||
"!Conversation History"
|
||||
"!Snoozed"
|
||||
"!Social Activity Notifications"
|
||||
"!Sync Issues*"
|
||||
"!Unsent Messages"
|
||||
];
|
||||
subFolders = "Verbatim";
|
||||
extraConfig.account.AuthMechs = "LOGIN";
|
||||
};
|
||||
};
|
||||
programs.mbsync.groups.inboxes.outlook = ["INBOX"];
|
||||
systemd.user.services.davmail = {
|
||||
Unit = {
|
||||
Description = "Davmail server";
|
||||
Wants = ["network-online.target"];
|
||||
After = ["network-online.target"];
|
||||
};
|
||||
Service = {
|
||||
Environment = ["PATH=/run/current-system/sw/bin/:$PATH"];
|
||||
Restart = "always";
|
||||
ExecStartPre = with config.home; ''
|
||||
/bin/sh -c "if [ ! -f ${homeDirectory}/.davmail.properties ]; then cp ${./davmail.properties} ${homeDirectory}/.davmail.properties; fi; chmod 644 ${homeDirectory}/.davmail.properties"
|
||||
'';
|
||||
ExecStart = "${pkgs.davmail}/bin/davmail -notray ${config.home.homeDirectory}/.davmail.properties";
|
||||
};
|
||||
Install.WantedBy = ["default.target"];
|
||||
};
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
(defwindow example
|
||||
:monitor 0
|
||||
:geometry (geometry :x "0%"
|
||||
:y "20px"
|
||||
:width "90%"
|
||||
:height "30px"
|
||||
:anchor "top center")
|
||||
:stacking "overlay"
|
||||
:reserve (struts :distance "40px" :side "top")
|
||||
:windowtype "dock"
|
||||
:wm-ignore false
|
||||
:namespace eww-example
|
||||
"example content")
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.eww = {
|
||||
enable = true;
|
||||
package = pkgs.eww-wayland;
|
||||
configDir = ./config;
|
||||
};
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
{
|
||||
fonts,
|
||||
scheme,
|
||||
...
|
||||
}: {
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
server.enable = true;
|
||||
settings = {
|
||||
main = {
|
||||
# term = "xterm-256color";
|
||||
title = "foot";
|
||||
locked-title = "no";
|
||||
font = with fonts; "${monospace.name}:size=${toString sizes.applications}";
|
||||
dpi-aware = "no";
|
||||
pad = "10x10";
|
||||
};
|
||||
bell = {
|
||||
urgent = "no";
|
||||
notify = "no";
|
||||
visual = "no";
|
||||
};
|
||||
cursor = {blink = "yes";};
|
||||
mouse = {hide-when-typing = "no";};
|
||||
colors = with scheme; rec {
|
||||
alpha = 0.8;
|
||||
background = base00;
|
||||
foreground = base05;
|
||||
regular0 = base02;
|
||||
regular1 = red;
|
||||
regular2 = green;
|
||||
regular3 = yellow;
|
||||
regular4 = blue;
|
||||
regular5 = magenta;
|
||||
regular6 = cyan;
|
||||
regular7 = base05;
|
||||
bright0 = base03;
|
||||
bright1 = regular1;
|
||||
bright2 = regular2;
|
||||
bright3 = regular3;
|
||||
bright4 = regular4;
|
||||
bright5 = regular5;
|
||||
bright6 = regular6;
|
||||
bright7 = base04;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services.git-sync.enable = false; # Can't find pass for some reason...
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Evie Litherland-Smith";
|
||||
userEmail = lib.mkDefault "evie@xenia.me.uk";
|
||||
delta = {
|
||||
enable = true;
|
||||
options = {
|
||||
line-numbers = true;
|
||||
hyprlinks = true;
|
||||
navigate = true;
|
||||
side-by-side = true;
|
||||
syntax-theme = with config.programs; lib.mkIf bat.enable bat.config.theme;
|
||||
};
|
||||
};
|
||||
attributes = [
|
||||
"*.gpg filter=gpg diff=gpg"
|
||||
"*.asc filter=gpg diff=gpg"
|
||||
];
|
||||
extraConfig = let
|
||||
user = "pixelifytica";
|
||||
in {
|
||||
github = {inherit user;};
|
||||
gitea = {inherit user;};
|
||||
pull.rebase = false;
|
||||
init.defaultBranch = "main";
|
||||
merge.conflictstyle = "diff3";
|
||||
diff = {
|
||||
colorMoved = "default";
|
||||
gpg.textconv = "gpg --no-tty --decrypt";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,398 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
fonts,
|
||||
scheme,
|
||||
accentColour ? "base07",
|
||||
...
|
||||
}: {
|
||||
imports = [../desktop.nix];
|
||||
home.packages = with pkgs; [
|
||||
(writeShellScriptBin "protonmail-setup-bridge" ''
|
||||
pkill -9 -f protonmail-bridge
|
||||
${protonmail-bridge}/bin/protonmail-bridge -c
|
||||
${config.wayland.windowManager.hyprland.finalPackage}/bin/hyprctl dispatch exec "${protonmail-bridge}/bin/protonmail-bridge -n"
|
||||
'')
|
||||
];
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
systemd.enable = true;
|
||||
settings = {
|
||||
monitor = [",preferred,auto,auto"];
|
||||
env = with config; [
|
||||
"XDG_CURRENT_DESKTOP=Hyprland"
|
||||
"XDG_SESSION_TYPE=wayland"
|
||||
"XDG_SESSION_DESKTOP=Hyprland"
|
||||
"GDK_BACKEND=wayland,x11"
|
||||
"GTK_THEME,${gtk.theme.name}"
|
||||
"XCURSOR_THEME,${gtk.cursorTheme.name}"
|
||||
"XCURSOR_SIZE,${toString gtk.cursorTheme.size}"
|
||||
"QT_AUTO_SCREEN_SCALE_FACTOR,1"
|
||||
"QT_QPA_PLATFORM,wayland"
|
||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
||||
"MOZ_ENABLE_WAYLAND,1"
|
||||
"GRIM_DEFAULT_DIR=${xdg.userDirs.pictures}/Grim"
|
||||
];
|
||||
exec-once = with config; [
|
||||
"systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME"
|
||||
"${wayland.windowManager.hyprland.finalPackage}/bin/hyprctl setcursor ${gtk.cursorTheme.name} ${toString gtk.cursorTheme.size}"
|
||||
"${pkgs.swaynotificationcenter}/bin/swaync"
|
||||
"${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
|
||||
"${pkgs.protonmail-bridge}/bin/protonmail-bridge -n"
|
||||
"${pkgs.waybar}/bin/waybar"
|
||||
"${pkgs.hyprpaper}/bin/hyprpaper"
|
||||
];
|
||||
gestures.workspace_swipe = true;
|
||||
input = {
|
||||
kb_layout = "gb";
|
||||
kb_options = "ctrl:nocaps";
|
||||
follow_mouse = 1;
|
||||
touchpad.natural_scroll = "yes";
|
||||
};
|
||||
dwindle = {
|
||||
force_split = 2;
|
||||
preserve_split = false;
|
||||
smart_split = false;
|
||||
smart_resizing = false;
|
||||
special_scale_factor = 0.95;
|
||||
no_gaps_when_only = 0;
|
||||
use_active_for_splits = true;
|
||||
default_split_ratio = 1.0;
|
||||
};
|
||||
master = {
|
||||
allow_small_split = true;
|
||||
special_scale_factor = 0.95;
|
||||
mfact = 0.5;
|
||||
new_is_master = false;
|
||||
new_on_top = false;
|
||||
no_gaps_when_only = 0;
|
||||
orientation = "left";
|
||||
inherit_fullscreen = false;
|
||||
smart_resizing = false;
|
||||
drop_at_cursor = true;
|
||||
};
|
||||
general = with scheme; {
|
||||
"col.active_border" = "rgb(${scheme.${accentColour}})";
|
||||
"col.inactive_border" = "rgb(${base03})";
|
||||
gaps_in = 5;
|
||||
gaps_out = 10;
|
||||
border_size = 1;
|
||||
cursor_inactive_timeout = 0;
|
||||
layout = "dwindle";
|
||||
};
|
||||
decoration = with scheme; {
|
||||
rounding = 10;
|
||||
"col.shadow" = "rgba(0d${base00})";
|
||||
drop_shadow = "yes";
|
||||
shadow_ignore_window = true;
|
||||
shadow_range = 4;
|
||||
shadow_render_power = 3;
|
||||
blur = {
|
||||
enabled = true;
|
||||
size = 5;
|
||||
passes = 3;
|
||||
new_optimizations = true;
|
||||
brightness = 1.0;
|
||||
noise = 2.0e-2;
|
||||
};
|
||||
};
|
||||
animations = {
|
||||
enabled = true;
|
||||
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
||||
animation = [
|
||||
"windows, 1, 7, myBezier"
|
||||
"windowsOut, 1, 7, default, popin 80%"
|
||||
"border, 1, 10, default"
|
||||
"borderangle, 1, 8, default"
|
||||
"fade, 1, 7, default"
|
||||
"workspaces, 1, 6, default"
|
||||
];
|
||||
};
|
||||
misc = {
|
||||
disable_splash_rendering = true;
|
||||
disable_autoreload = true;
|
||||
mouse_move_enables_dpms = true;
|
||||
key_press_enables_dpms = true;
|
||||
};
|
||||
xwayland.force_zero_scaling = true;
|
||||
layerrule = let
|
||||
blur = x: "blur, ^(${x})$";
|
||||
ignorealpha = x: "ignorealpha 0.3, ^(${x})$";
|
||||
layers = [
|
||||
"waybar"
|
||||
"system-menu"
|
||||
"rofi"
|
||||
"gtk-layer-shell"
|
||||
"notifications"
|
||||
"swaync-.*"
|
||||
"avizo"
|
||||
];
|
||||
in
|
||||
(lib.lists.forEach layers blur)
|
||||
++ (lib.lists.forEach layers ignorealpha);
|
||||
windowrule = [
|
||||
# Workspace binds
|
||||
"workspace 3, (libreoffice|soffice)(.*)"
|
||||
"workspace 4, (WebCord|signal)"
|
||||
"workspace 5, org.prismlauncher.PrismLauncher"
|
||||
"workspace 5 silent, steam" # Keep silent to avoid popups taking focus
|
||||
|
||||
# Float + move system windows
|
||||
"float, org.kde.polkit-kde-authentication-agent-1|Pinentry"
|
||||
"center, org.kde.polkit-kde-authentication-agent-1|Pinentry"
|
||||
"pin, org.kde.polkit-kde-authentication-agent-1|Pinentry"
|
||||
"dimaround, org.kde.polkit-kde-authentication-agent-1|Pinentry"
|
||||
"stayfocused, org.kde.polkit-kde-authentication-agent-1|Pinentry"
|
||||
"float, pavucontrol|.blueman-manager-wrapped|nm-connection-editor"
|
||||
"size 800 600, pavucontrol|.blueman-manager-wrapped|nm-connection-editor"
|
||||
"move onscreen 100%-820 60,pavucontrol|.blueman-manager-wrapped|nm-connection-editor"
|
||||
|
||||
# PrismLauncher / Minecraft
|
||||
"float, org.prismlauncher.PrismLauncher"
|
||||
"center, org.prismlauncher.PrismLauncher"
|
||||
"size 800 600, org.prismlauncher.PrismLauncher"
|
||||
];
|
||||
windowrulev2 = [
|
||||
# Firefox PIP
|
||||
"float, title:Picture-in-Picture|Library,class:firefox"
|
||||
"size 750 400, title:Picture-in-Picture,class:firefox"
|
||||
"size 800 800, title:Library,class:firefox"
|
||||
"move onscreen 100%-775 100%-425, title:Picture-in-Picture,class:firefox"
|
||||
"center, title:Library,class:firefox"
|
||||
"pin, title:Picture-in-Picture,class:firefox"
|
||||
|
||||
# Thunar extra windows
|
||||
"float, title:File Operation Progress,class:thunar"
|
||||
"size 800 600, title:File Operation Progress,class:thunar"
|
||||
"center, title:File Operation Progress,class:thunar"
|
||||
|
||||
# LibreOffice
|
||||
"nofullscreenrequest, class:(libreoffice|soffice)(.*)"
|
||||
"nomaximizerequest, class:(libreoffice|soffice)(.*)"
|
||||
"float, title:Open,class:(libreoffice|soffice)(.*)"
|
||||
|
||||
# Steam
|
||||
"float, title:Friends List,class:steam"
|
||||
"size 400 600, title:Friends List,class:steam"
|
||||
"float, title:(.*)(Chat),class:steam"
|
||||
"size 800 600, title:(.*)(Chat),class:steam"
|
||||
"float, title:Steam Settings,class:steam"
|
||||
"size 800 600, title:Steam Settings,class:steam"
|
||||
|
||||
# X2Go / Remmina / NoMachine
|
||||
"nofullscreenrequest, class:x2goclient|org.remmina.Remmina|Nxplayer.bin"
|
||||
"nomaximizerequest, class:x2goclient|org.remmina.Remmina|Nxplayer.bin"
|
||||
"float, title:(X2Go Client|Freia|Heimdall), class:x2goclient"
|
||||
"float, title:Remmina Remote Desktop Client, class:org.remmina.Remmina"
|
||||
"float, title:(NoMachine)(.*), class:Nxplayer.bin"
|
||||
"center, title:(X2Go Client|Freia|Heimdall), class:x2goclient"
|
||||
"center, title:Remmina Remote Desktop Client, class:org.remmina.Remmina"
|
||||
"center, title:(NoMachine)(.*), class:Nxplayer.bin"
|
||||
"size 800 600, title:X2Go Client, class:x2goclient"
|
||||
"size 1920 1080, title:Freia|Heimdall, class:x2goclient"
|
||||
"size 1920 1080, title:(NoMachine)(.*), class:Nxplayer.bin"
|
||||
];
|
||||
bind = let
|
||||
withTerm = {
|
||||
term ? "alacritty",
|
||||
package ? config.programs.${term}.package,
|
||||
progname,
|
||||
args ? "",
|
||||
}: "${package}/bin/${term} -T ${progname} -e ${progname} ${args}";
|
||||
workspace = w: [
|
||||
"SUPER, ${toString w}, moveworkspacetomonitor, ${toString w} current"
|
||||
"SUPER, ${toString w}, workspace, ${toString w}"
|
||||
"SUPER SHIFT, ${toString w}, movetoworkspace, ${toString w}"
|
||||
];
|
||||
in
|
||||
with config.programs;
|
||||
with lib.lists;
|
||||
flatten (forEach (range 1 9) workspace)
|
||||
++ (let
|
||||
btm_args = "--autohide_time --battery --celsius --enable_cache_memory --enable_gpu_memory --group --hide_avg_cpu --hide_table_gap --retention=3m --show_table_scroll_position";
|
||||
in [
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
# Open Hyprland wiki at correct version number
|
||||
"CTRL_SHIFT, H, exec, xdg-open \"https://wiki.hyprland.org/$(hyprctl version -j | ${pkgs.jq}/bin/jq $args.commit | ${pkgs.gnused}/bin/sed s/v// | ${pkgs.gnused}/bin/sed s/\\\"//g)\""
|
||||
|
||||
# "SUPER, F1, exec, ${pkgs.hyprlock}/bin/hyprlock" # Until added to nixpkgs
|
||||
"SUPER, F1, exec, ${swaylock.package}/bin/swaylock --screenshots --clock --indicator --grace-no-mouse"
|
||||
"SUPER, Q, killactive,"
|
||||
"SUPER SHIFT, Q, exec, pkill rofi || ${rofi.finalPackage}/bin/rofi -show powermenu -modi powermenu:${pkgs.rofi-power-menu}/bin/rofi-power-menu"
|
||||
"SUPER, V, togglefloating"
|
||||
# "SUPER SHIFT, V, setfloating" ## TODO setfloating exists
|
||||
# in newer version of Hyprland than mine
|
||||
"SUPER SHIFT, V, moveactive, exact 1% 4%"
|
||||
"SUPER SHIFT, V, resizeactive, exact 800 600"
|
||||
"SUPER SHIFT, V, pin"
|
||||
"SUPER, M, fullscreen, 1" # Maximise window
|
||||
"SUPER SHIFT, M, fullscreen, 0" # Actual fullscreen
|
||||
"SUPER, Z, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw"
|
||||
"SUPER SHIFT, Z, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -d -sw"
|
||||
|
||||
# Common program shortcuts
|
||||
"SUPER, Return, exec, ${alacritty.package}/bin/alacritty"
|
||||
"SUPER, E, exec, ${emacs.finalPackage}/bin/emacsclient -c"
|
||||
"SUPER, W, exec, ${firefox.package}/bin/firefox"
|
||||
"SUPER, F, exec, ${pkgs.xfce.thunar}/bin/thunar"
|
||||
|
||||
# Rofi binds
|
||||
"SUPER, Space, exec, pkill rofi || ${rofi.finalPackage}/bin/rofi -show drun"
|
||||
"SUPER, tab, exec, pkill rofi || ${rofi.finalPackage}/bin/rofi -show window"
|
||||
"SUPER, A, exec, pkill rofi || ${rofi.finalPackage}/bin/rofi -show emoji"
|
||||
|
||||
# rofi-pass binds
|
||||
"SUPER, P, exec, pkill rofi || ${rofi.pass.package}/bin/rofi-pass"
|
||||
"SUPER SHIFT, P, exec, pkill rofi || ${rofi.pass.package}/bin/rofi-pass --last-used"
|
||||
"SUPER ALT, P, exec, pkill rofi || ${rofi.pass.package}/bin/rofi-pass --insert"
|
||||
|
||||
# Terminal utilities
|
||||
"SUPER, S, exec, ${withTerm {
|
||||
progname = "btm";
|
||||
args = btm_args;
|
||||
}}"
|
||||
"SUPER SHIFT, S, exec, ${withTerm {
|
||||
progname = "btm";
|
||||
args = btm_args + " --basic";
|
||||
}}"
|
||||
"SUPER, C, exec, ${withTerm {progname = "cava";}}"
|
||||
|
||||
# Misc useful binds
|
||||
'',Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"''
|
||||
",XF86Calculator,exec,pkill rofi || ${rofi.finalPackage}/bin/rofi -show calc"
|
||||
|
||||
# Movement binds
|
||||
"SUPER, H, movefocus, l"
|
||||
"SUPER, L, movefocus, r"
|
||||
"SUPER, K, movefocus, u"
|
||||
"SUPER, J, movefocus, d"
|
||||
"SUPER SHIFT, H, movewindow, l"
|
||||
"SUPER SHIFT, L, movewindow, r"
|
||||
"SUPER SHIFT, K, movewindow, u"
|
||||
"SUPER SHIFT, J, movewindow, d"
|
||||
|
||||
# Special workspaces
|
||||
"SUPER, comma, workspace, m-1"
|
||||
"SUPER SHIFT, comma, movetoworkspace, r-1"
|
||||
"SUPER, period, workspace, m+1"
|
||||
"SUPER SHIFT, period, movetoworkspace, r+1"
|
||||
"SUPER, N, workspace, empty"
|
||||
"SUPER SHIFT, N, movetoworkspace, empty"
|
||||
"SUPER, minus, togglespecialworkspace"
|
||||
"SUPER SHIFT, minus, movetoworkspace, special"
|
||||
"SUPER, bracketright, focusmonitor, +1"
|
||||
"SUPER SHIFT, bracketright, movecurrentworkspacetomonitor, +1"
|
||||
"SUPER, bracketleft, focusmonitor, -1"
|
||||
"SUPER SHIFT, bracketleft, movecurrentworkspacetomonitor, -1"
|
||||
"SUPER, O, focusurgentorlast"
|
||||
]);
|
||||
bindl = with config.services; [
|
||||
# Sound
|
||||
",XF86AudioMute,exec,${avizo.package}/bin/volumectl %"
|
||||
",XF86AudioMicMute,exec,${avizo.package}/bin/volumectl -m %"
|
||||
|
||||
# Playback
|
||||
",XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause"
|
||||
",XF86AudioStop,exec,${pkgs.playerctl}/bin/playerctl play-pause"
|
||||
",XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous"
|
||||
",XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next"
|
||||
];
|
||||
bindle = with config.services; [
|
||||
# Sound
|
||||
",XF86AudioRaiseVolume,exec,${avizo.package}/bin/volumectl -u + 5"
|
||||
",XF86AudioLowerVolume,exec,${avizo.package}/bin/volumectl -u - 5"
|
||||
|
||||
# Brightness
|
||||
",XF86MonBrightnessUp,exec,${avizo.package}/bin/lightctl + 5"
|
||||
",XF86MonBrightnessDown,exec,${avizo.package}/bin/lightctl - 5"
|
||||
];
|
||||
bindm = [
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
"SUPER, mouse:272, movewindow"
|
||||
"SUPER, mouse:273, resizewindow"
|
||||
];
|
||||
};
|
||||
};
|
||||
xdg.configFile = {
|
||||
"hypr/hyprpaper.conf".text = let
|
||||
image = ../../wallpapers/waves/cat-waves.png;
|
||||
in ''
|
||||
preload = ${image}
|
||||
wallpaper = ,${image}
|
||||
'';
|
||||
"hypr/hyprlock.conf".text = with scheme; let
|
||||
font = fonts.sansSerif.name;
|
||||
accent = scheme.${accentColour};
|
||||
in ''
|
||||
# GENERAL
|
||||
general {
|
||||
disable_loading_bar = true
|
||||
hide_cursor = true
|
||||
}
|
||||
|
||||
# BACKGROUND
|
||||
background {
|
||||
monitor =
|
||||
path = screenshot
|
||||
blur_passes = 3
|
||||
color = 0xff${accent}
|
||||
}
|
||||
|
||||
# TIME
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:30000] echo "$(date +"%R")"
|
||||
color = 0xff${base05}
|
||||
font_size = 90
|
||||
font_family = ${font}
|
||||
position = -30, 0
|
||||
halign = right
|
||||
valign = top
|
||||
}
|
||||
|
||||
# DATE
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:43200000] echo "$(date +"%A,%e %B %Y")"
|
||||
color = 0xff${base05}
|
||||
font_size = 25
|
||||
font_family = ${font}
|
||||
position = -30, -150
|
||||
halign = right
|
||||
valign = top
|
||||
}
|
||||
|
||||
# USER
|
||||
image {
|
||||
monitor =
|
||||
path = ${../../picrew.png}
|
||||
size = 100
|
||||
border_color = 0xff${accent}
|
||||
position = 0, 75
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# INPUT FIELD
|
||||
input-field {
|
||||
monitor =
|
||||
size = 300, 60
|
||||
outline_thickness = 2
|
||||
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
||||
dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0
|
||||
dots_center = true
|
||||
outer_color = 0xff${accent}
|
||||
inner_color = 0xff${base00}
|
||||
font_color = 0xff${base05}
|
||||
fade_on_empty = false
|
||||
placeholder_text = <span foreground="##${base04}"><i> Logged in as </i><span foreground="##${accent}">$USER</span></span>
|
||||
hide_input = false
|
||||
position = 0, -50
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
$env.config = {
|
||||
show_banner: false,
|
||||
edit_mode: emacs,
|
||||
table: {
|
||||
mode: rounded,
|
||||
},
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{...}: {
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
envFile.source = ./env.nu;
|
||||
configFile.source = ./config.nu;
|
||||
};
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
$env.TRANSIENT_PROMPT_COMMAND = "> "
|
||||
$env.PAGER = "bat"
|
|
@ -1,122 +0,0 @@
|
|||
(
|
||||
;; Personal
|
||||
|
||||
;; Messaging
|
||||
( :url "https://web.whatsapp.com/"
|
||||
:title "WhatApp Web"
|
||||
:tags ("personal" "messaging"))
|
||||
( :url "https://discord.com/app"
|
||||
:title "Discord"
|
||||
:tags ("personal" "messaging"))
|
||||
;; Server
|
||||
( :url "https://xenia.me.uk"
|
||||
:title "Home Page"
|
||||
:tags ("personal" "server"))
|
||||
( :url "https://git.xenia.me.uk"
|
||||
:title "Forgejo"
|
||||
:tags ("personal" "server" "dev" "git"))
|
||||
( :url "https://blog.xenia.me.uk"
|
||||
:title "Blog"
|
||||
:tags ("personal" "server"))
|
||||
;; Dev
|
||||
( :url "https://github.com"
|
||||
:title "GitHub"
|
||||
:tags ("personal" "dev" "git"))
|
||||
;; EV
|
||||
( :url "https://abetterrouteplanner.com/"
|
||||
:title "ABRP - A Better Route Planner"
|
||||
:tags ("personal" "ev" "map"))
|
||||
;; Documentation
|
||||
( :url "https://nixos-and-flakes.thiscute.world/"
|
||||
:title "NixOS and Flakes"
|
||||
:tags ("personal" "documentation"))
|
||||
( :url "https://nix-community.github.io/home-manager/options.xhtml"
|
||||
:title "Home Manager Configuration Options"
|
||||
:tags ("personal" "documentation"))
|
||||
( :url "https://mipmip.github.io/home-manager-option-search/"
|
||||
:title "Home Manager Option Search"
|
||||
:tags ("personal" "documentation"))
|
||||
;; Awesome Repos
|
||||
( :url "https://github.com/emacs-tw/awesome-emacs"
|
||||
:title "Awesome Emacs"
|
||||
:tags ("personal" "awesome" "git"))
|
||||
;; Miscellaneous
|
||||
( :url "https://www.colorhexa.com/"
|
||||
:title "Colour Encyclopedia"
|
||||
:tags ("personal" "miscellaneous"))
|
||||
|
||||
;; Work
|
||||
|
||||
( :url "https://nucleus.ukaea.uk/"
|
||||
:title "Nucleus"
|
||||
:tags ("work"))
|
||||
( :url "https://marval.service.ukaea.uk/MSMSelfService/Index.aspx"
|
||||
:title "Marval Helpdesk"
|
||||
:tags ("work"))
|
||||
( :url "https://ubw.unit4cloud.com/uk_aea_prod_web/Login/Login.aspx"
|
||||
:title "Unit4 Business World"
|
||||
:tags ("work"))
|
||||
;; Dev
|
||||
( :url "https://git.ccfe.ac.uk/"
|
||||
:title "GitLab (CCFE)"
|
||||
:tags ("work" "dev" "git"))
|
||||
;; JET
|
||||
( :url "http://w3.jet.uk/"
|
||||
:title "JET Homepage"
|
||||
:tags ("work" "jet"))
|
||||
( :url "https://users.euro-fusion.org/pages/physics-summary/LatestSession.php"
|
||||
:title "JET Physics Summary"
|
||||
:tags ("work" "jet"))
|
||||
( :url "https://www.jspo.jet.uk/pages/operations/jpecreports_2023.html"
|
||||
:title "JSPO JPEC Reports"
|
||||
:tags ("work" "jet"))
|
||||
( :url "https://dvcm.jetdata.eu/"
|
||||
:title "DVCM Homepage"
|
||||
:tags ("work" "jet"))
|
||||
;; JET Data Services
|
||||
( :url "https://data.jet.uk/"
|
||||
:title "JET Data Services"
|
||||
:tags ("work" "jet" "data"))
|
||||
( :url "https://data.jet.uk/ppf/browse/ppfquery"
|
||||
:title "PPF Query"
|
||||
:tags ("work" "jet" "data"))
|
||||
( :url "https://data.jet.uk/reqco/myrequests"
|
||||
:title "ReqCo"
|
||||
:tags ("work" "jet" "data"))
|
||||
;; MAST-U
|
||||
( :url "https://users.mastu.ukaea.uk/home"
|
||||
:title "MAST-U Users Page"
|
||||
:tags ("work" "mast-u"))
|
||||
( :url "https://intranet.ccfe.ac.uk/mastu-handbook"
|
||||
:title "MAST-U Diagnostic Handbook"
|
||||
:tags ("work" "mast-u"))
|
||||
;; OpenWiki
|
||||
( :url "https://wiki.jetdata.eu/open/index.php?title=Main_Page"
|
||||
:title "OpenWiki Homepage"
|
||||
:tags ("work" "openwiki"))
|
||||
( :url "https://wiki.jetdata.eu/open/index.php?title=Diagnostic_Coordinator_Wiki"
|
||||
:title "Diagnostic Coordinator Wiki"
|
||||
:tags ("work" "openwiki"))
|
||||
( :url "https://wiki.jetdata.eu/open/index.php?title=Spectroscopy_Group:index"
|
||||
:title "Spectroscopy Group Wiki"
|
||||
:tags ("work" "openwiki"))
|
||||
( :url "https://wiki.jetdata.eu/open/index.php?title=CXS:Topic3"
|
||||
:title "KS5 Wiki"
|
||||
:tags ("work" "openwiki"))
|
||||
( :url "https://wiki.jetdata.eu/open/index.php?title=KT3_Journals"
|
||||
:title "KT3 Wiki"
|
||||
:tags ("work" "openwiki"))
|
||||
;; Office
|
||||
( :url "https://outlook.office.com/calendar/view/workweek"
|
||||
:title "Outlook Calendar"
|
||||
:tags ("work" "microsoft" "office"))
|
||||
( :url "https://teams.microsoft.com/v2"
|
||||
:title "Microsoft Teams"
|
||||
:tags ("work" "microsoft" "office"))
|
||||
( :url "https://ukaeauk-my.sharepoint.com/personal/evie_litherland-smith_ukaea_uk/"
|
||||
:title "OneDrive"
|
||||
:tags ("work" "microsoft" "office"))
|
||||
( :url "https://ukaeauk.sharepoint.com/"
|
||||
:title "Sharepoint"
|
||||
:tags ("work" "microsoft" "office"))
|
||||
)
|
|
@ -1,41 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
fonts,
|
||||
scheme,
|
||||
accentColour ? "base07",
|
||||
...
|
||||
}: {
|
||||
xdg = {
|
||||
configFile = {
|
||||
"nyxt/config.lisp".text = with scheme.withHashtag; ''
|
||||
;; Import custom configuration
|
||||
(nyxt::load-lisp "${./config.lisp}")
|
||||
;; Define custom theme
|
||||
(define-configuration browser
|
||||
((theme (make-instance 'theme:theme
|
||||
:dark-p t
|
||||
:font-family "${fonts.sansSerif.name}"
|
||||
:monospace-font-family "${fonts.monospace.name}"
|
||||
:background-color "${base00}"
|
||||
:on-background-color "${base05}"
|
||||
:primary-color "${scheme.withHashtag.${accentColour}}"
|
||||
:on-primary-color "${base01}"
|
||||
:secondary-color "${base03}"
|
||||
:on-secondary-color "${base05}"
|
||||
:accent-color "${cyan}"
|
||||
:on-accent-color "${base01}"
|
||||
:action-color "${cyan}"
|
||||
:on-action-color "${base01}"
|
||||
:success-color "${green}"
|
||||
:on-success-color "${base01}"
|
||||
:highlight-color "${magenta}"
|
||||
:on-highlight-color "${base01}"
|
||||
:warning-color "${yellow}"
|
||||
:on-warning-color "${base01}"
|
||||
:codeblock-color "${base02}"
|
||||
:on-codeblock-color "${base05}"))))
|
||||
'';
|
||||
};
|
||||
dataFile."nyxt/bookmarks.lisp".source = ./bookmarks.lisp;
|
||||
};
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [helvum];
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
wlrobs
|
||||
obs-vkcapture
|
||||
obs-pipewire-audio-capture
|
||||
input-overlay
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
xdg.configFile."pass-git-helper/git-pass-mapping.ini".source =
|
||||
./git-pass-mapping.ini;
|
||||
programs = {
|
||||
gpg.enable = true;
|
||||
password-store = {
|
||||
enable = true;
|
||||
package =
|
||||
pkgs.pass-nodmenu.withExtensions
|
||||
(exts: with exts; [pass-otp pass-update pass-import]); # pass-audit
|
||||
settings = {
|
||||
PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store";
|
||||
PASSWORD_STORE_ENABLE_EXTENSIONS = "true";
|
||||
};
|
||||
};
|
||||
git.extraConfig.credential = {
|
||||
helper = "${pkgs.pass-git-helper}/bin/pass-git-helper";
|
||||
};
|
||||
};
|
||||
services = {
|
||||
gpg-agent = rec {
|
||||
enable = true;
|
||||
maxCacheTtl = 86400;
|
||||
defaultCacheTtl = maxCacheTtl;
|
||||
defaultCacheTtlSsh = maxCacheTtl;
|
||||
pinentryFlavor = lib.mkDefault "curses";
|
||||
extraConfig = ''
|
||||
no-allow-external-cache
|
||||
'';
|
||||
};
|
||||
git-sync.repositories.password-store = {
|
||||
path = "${config.home.homeDirectory}/.password-store";
|
||||
uri = "git+https://git.xenia.me.uk/xenia/pass.git";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
[DEFAULT]
|
||||
username_extractor=regex_search
|
||||
regex_username=^login: (.*)$
|
||||
|
||||
[*]
|
||||
target=git/${host}
|
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
gtk3,
|
||||
libsForQt5,
|
||||
gnome,
|
||||
hicolor-icon-theme,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "candy-icon-theme";
|
||||
version = "6a35be5cb133c6be8314807f55da3d795e24fb86";
|
||||
dontBuild = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "EliverLara";
|
||||
repo = "candy-icons";
|
||||
rev = version;
|
||||
sha256 = "sha256-M58ts/xyVf+ZDidd4MEp/LlU3vk2imEwOnb0/sVJUYo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [gtk3];
|
||||
|
||||
buildInputs = [libsForQt5.breeze-icons gnome.adwaita-icon-theme hicolor-icon-theme];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/icons/Sweet-folders
|
||||
mv * $out/share/icons/Sweet-folders
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache --force $theme
|
||||
done
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
|
@ -1,46 +0,0 @@
|
|||
{
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
gtk3,
|
||||
candy-icon-theme,
|
||||
gnome-icon-theme,
|
||||
ubuntu-themes,
|
||||
cinnamon,
|
||||
elementary-xfce-icon-theme,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "sweet-folder-theme";
|
||||
version = "b2192ff1412472f036fdf9778c6b9dbcb6c044ec";
|
||||
dontBuild = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "EliverLara";
|
||||
repo = "Sweet-folders";
|
||||
rev = version;
|
||||
sha256 = "sha256-QexfqXH5a1IEhKBRjWSMdrEvThvLRzd4M32Xti1DCGE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [gtk3];
|
||||
|
||||
buildInputs = [
|
||||
candy-icon-theme
|
||||
gnome-icon-theme
|
||||
ubuntu-themes
|
||||
cinnamon.mint-x-icons
|
||||
elementary-xfce-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/icons
|
||||
mv Sweet-Rainbow $out/share/icons
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache --force $theme
|
||||
done
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
xdg.configFile = {
|
||||
"ruff/pyproject.toml".source = ./ruff.toml;
|
||||
"pypoetry/config.toml".source = ./pypoetry.toml;
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
# Nix
|
||||
nil
|
||||
alejandra
|
||||
|
||||
# Shell
|
||||
shfmt
|
||||
shellcheck
|
||||
nodePackages.prettier
|
||||
|
||||
# Python
|
||||
(python3.withPackages
|
||||
(ps: with ps; [python-lsp-server flake8 mypy]))
|
||||
black
|
||||
isort
|
||||
|
||||
# FORTRAN
|
||||
fortls
|
||||
];
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"Application": { "log_datefmt": "%Y-%m-%d %H:%M:%S" },
|
||||
"InteractiveShell": {
|
||||
"colors": "Linux",
|
||||
"color_info": true
|
||||
},
|
||||
"InteractiveShellApp": {
|
||||
"exec_PYTHONSTARTUP": false,
|
||||
"exec_lines": ["%load_ext autoreload", "%autoreload 2 --print"]
|
||||
},
|
||||
"TerminalIPythonApp": { "display_banner": false },
|
||||
"TerminalInteractiveShell": {
|
||||
"editing_mode": "emacs",
|
||||
"mouse_support": false,
|
||||
"true_color": true
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
c.SlidesExporter.exclude_input = True
|
||||
c.SlidesExporter.reveal_scroll = True
|
||||
c.PDFExporter.latex_command = ["pdflatex", "{filename}"]
|
|
@ -1,17 +0,0 @@
|
|||
import os
|
||||
from pathlib import Path
|
||||
|
||||
root_dir = Path(os.getenv("HOME", Path("~/").expanduser().resolve()))
|
||||
|
||||
c.ServerApp.port = 8888
|
||||
c.ServerApp.root_dir = str(root_dir)
|
||||
c.FileCheckpoints.checkpoint_dir = str(root_dir / ".ipynb_checkpoints")
|
||||
c.ServerApp.use_redirect_file = False
|
||||
c.ServerApp.open_browser = False
|
||||
|
||||
# Set password for remote access login
|
||||
c.PasswordIdentityProvider.hashed_password = (
|
||||
"sha1:005773a53a70:a5c53a779fa0e1498ada0f8fdb48ad1fef1257ff"
|
||||
)
|
||||
c.PasswordIdentityProvider.password_required = True
|
||||
c.PasswordIdentityProvider.allow_password_change = False
|
|
@ -1,41 +0,0 @@
|
|||
{
|
||||
agg,
|
||||
freetype,
|
||||
buildLuarocksPackage,
|
||||
fetchgit,
|
||||
fetchurl,
|
||||
lua,
|
||||
luaOlder,
|
||||
}:
|
||||
buildLuarocksPackage {
|
||||
pname = "graph-toolkit";
|
||||
version = "scm-1";
|
||||
knownRockspec =
|
||||
(fetchurl {
|
||||
url = "mirror://luarocks/graph-toolkit-scm-1.rockspec";
|
||||
sha256 = "0hsrf7k45w8ri18mdrx44mv1kr4zfr5mg76cxi8nnr30ssrblvgb";
|
||||
})
|
||||
.outPath;
|
||||
src = fetchgit (removeAttrs (builtins.fromJSON '' {
|
||||
"url": "https://github.com/franko/graph-toolkit",
|
||||
"rev": "126a11bdbb98faf785c373516a288b7fa609f824",
|
||||
"date": "2015-01-02T08:44:01-08:00",
|
||||
"path": "/nix/store/gbwbjrl4j42kaqk3pjzvmckmr6dimkd0-graph-toolkit",
|
||||
"sha256": "1pqjpqfandi7brk2213vlq891bl8drb0q32m5wmf0l21li0l4zrp",
|
||||
"hash": "sha256-N39CQaRBUOAqL1UMDFZuiK6QEKZ7BCFmXic2qxy+Et8=",
|
||||
"fetchLFS": false,
|
||||
"fetchSubmodules": true,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
'') ["date" "path" "sha256"]);
|
||||
|
||||
disabled = luaOlder "5.1";
|
||||
propagatedBuildInputs = [lua agg freetype];
|
||||
|
||||
meta = {
|
||||
homepage = "http://franko.github.io/graph-toolkit/";
|
||||
description = "Lua Graphics Toolkit";
|
||||
license.fullName = "GPL-3";
|
||||
};
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
{
|
||||
buildLuarocksPackage,
|
||||
fetchurl,
|
||||
lua,
|
||||
luaAtLeast,
|
||||
luaOlder,
|
||||
luaPackages,
|
||||
}: let
|
||||
xsys = luaPackages.callPackage ./xsys.nix {};
|
||||
in
|
||||
buildLuarocksPackage {
|
||||
pname = "sci";
|
||||
version = "1.0.0.beta12-1";
|
||||
knownRockspec =
|
||||
(fetchurl {
|
||||
url = "mirror://luarocks/sci-1.0.0.beta12-1.rockspec";
|
||||
sha256 = "0lprn9x4zw767hdz8lyxmwrrfyn5xj3x50pm9b4qiwy8992mg00r";
|
||||
})
|
||||
.outPath;
|
||||
src = fetchurl {
|
||||
url = "https://github.com/stepelu/lua-sci/archive/v1.0.0-beta12.tar.gz";
|
||||
sha256 = "0a45r7n13gfqckpdp1bmizqvjadn8nc5d6ff9gjw860g3i75sy2h";
|
||||
};
|
||||
|
||||
disabled = (luaOlder "5.1") || (luaAtLeast "5.4");
|
||||
propagatedBuildInputs = [lua xsys];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/stepelu/lua-sci";
|
||||
description = "Scientific Computing with LuaJIT";
|
||||
license.fullName = "MIT";
|
||||
};
|
||||
}
|
|
@ -1,51 +0,0 @@
|
|||
{config, ...}: {
|
||||
imports = [../desktop.nix];
|
||||
wayland.windowManager.river = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
extraSessionVariables = {
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
};
|
||||
systemd = {
|
||||
enable = true;
|
||||
variables = [
|
||||
"DISPLAY"
|
||||
"WAYLAND_DISPLAY"
|
||||
"XDG_CURRENT_DESKTOP"
|
||||
"NIXOS_OZONE_WL"
|
||||
"XCURSOR_THEME"
|
||||
"XCURSOR_SIZE"
|
||||
];
|
||||
};
|
||||
settings = {
|
||||
# These are currently example settings
|
||||
border-width = 2;
|
||||
declare-mode = [
|
||||
"locked"
|
||||
"normal"
|
||||
"passthrough"
|
||||
];
|
||||
input = {
|
||||
pointer-foo-bar = {
|
||||
accel-profile = "flat";
|
||||
events = true;
|
||||
pointer-accel = -0.3;
|
||||
tap = false;
|
||||
};
|
||||
};
|
||||
map = {
|
||||
normal = {
|
||||
"Alt Q" = "close";
|
||||
};
|
||||
};
|
||||
rule-add = {};
|
||||
set-cursor-warp = "on-output-change";
|
||||
set-repeat = "50 300";
|
||||
spawn = [];
|
||||
xcursor-theme = with config.gtk.cursorTheme; "${name} ${toString size}";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,141 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
fonts,
|
||||
scheme,
|
||||
accentColour ? "base07",
|
||||
...
|
||||
}: {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
font = fonts.monospace.name;
|
||||
location = "center";
|
||||
plugins = with pkgs; [rofi-emoji];
|
||||
pass = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
USERNAME_field='login'
|
||||
'';
|
||||
};
|
||||
extraConfig = {
|
||||
modi = "run,drun,ssh,window,emoji,combi";
|
||||
combi-modi = "drun,ssh,window,emoji";
|
||||
sidebar-mode = true;
|
||||
sort = true;
|
||||
sorting-method = "fzf";
|
||||
matching = "fuzzy";
|
||||
icon-theme = config.gtk.iconTheme.name;
|
||||
show-icons = true;
|
||||
application-fallback-icon = "application-x-addon";
|
||||
drun-display-format = "{icon} {name} ({categories})";
|
||||
disable-history = false;
|
||||
hide-scrollbar = true;
|
||||
display-run = " Run ";
|
||||
display-drun = " Apps ";
|
||||
display-ssh = " SSH ";
|
||||
display-window = " Move ";
|
||||
display-emoji = " Emoji ";
|
||||
display-combi = " Combi ";
|
||||
};
|
||||
theme = with builtins;
|
||||
with scheme; let
|
||||
inherit (config.lib.formats.rasi) mkLiteral;
|
||||
bg = mkLiteral "rgba (${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, 80%)";
|
||||
bg2 = mkLiteral "rgba (${base01-rgb-r}, ${base01-rgb-g}, ${base01-rgb-b}, 100%)";
|
||||
fg = mkLiteral withHashtag.base05;
|
||||
fg2 = mkLiteral withHashtag.base04;
|
||||
border = mkLiteral withHashtag.${accentColour};
|
||||
blue = mkLiteral withHashtag.blue;
|
||||
in {
|
||||
"*" = {
|
||||
background-color = mkLiteral "transparent";
|
||||
text-color = fg;
|
||||
font = with fonts; "${monospace.name} ${toString sizes.popups}";
|
||||
};
|
||||
|
||||
window = {
|
||||
height = mkLiteral "75%";
|
||||
width = mkLiteral "75%";
|
||||
border = mkLiteral "1px";
|
||||
border-color = border;
|
||||
border-radius = mkLiteral "10px";
|
||||
background-color = bg;
|
||||
};
|
||||
|
||||
inputbar = {
|
||||
children = map mkLiteral ["prompt" "entry"];
|
||||
padding = mkLiteral "2px";
|
||||
};
|
||||
|
||||
prompt = {
|
||||
background-color = bg2;
|
||||
padding = mkLiteral "6px";
|
||||
text-color = blue;
|
||||
border-radius = mkLiteral "10px";
|
||||
margin = mkLiteral "20px 0px 0px 20px";
|
||||
};
|
||||
|
||||
textbox-prompt-colon = {
|
||||
expand = false;
|
||||
str = "=";
|
||||
};
|
||||
|
||||
entry = {
|
||||
padding = mkLiteral "6px";
|
||||
margin = mkLiteral "20px 0px 0px 10px";
|
||||
};
|
||||
|
||||
listview = {
|
||||
border = mkLiteral "0px 0px 0px";
|
||||
padding = mkLiteral "6px 0px 0px";
|
||||
margin = mkLiteral "10px 0px 0px 20px";
|
||||
columns = 2;
|
||||
lines = 5;
|
||||
};
|
||||
|
||||
element = {
|
||||
padding = mkLiteral "5px";
|
||||
};
|
||||
|
||||
"element-icon" = {
|
||||
size = mkLiteral "25px";
|
||||
};
|
||||
|
||||
"element selected" = {
|
||||
background-color = bg2;
|
||||
text-color = blue;
|
||||
border-radius = mkLiteral "10px";
|
||||
};
|
||||
|
||||
mode-switcher = {
|
||||
spacing = 0;
|
||||
};
|
||||
|
||||
button = {
|
||||
padding = mkLiteral "10px";
|
||||
text-color = fg2;
|
||||
border-radius = mkLiteral "10px";
|
||||
vertical-align = mkLiteral "0.5";
|
||||
horizontal-align = mkLiteral "0.5";
|
||||
};
|
||||
|
||||
"button selected" = {
|
||||
background-color = bg2;
|
||||
text-color = blue;
|
||||
};
|
||||
|
||||
message = {
|
||||
margin = mkLiteral "2px";
|
||||
padding = mkLiteral "2px";
|
||||
border-radius = mkLiteral "5px";
|
||||
};
|
||||
|
||||
textbox = {
|
||||
padding = mkLiteral "6px";
|
||||
margin = mkLiteral "20px 0px 0px 20px";
|
||||
text-color = blue;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = [
|
||||
(pkgs.writeShellScriptBin "git-sync-all"
|
||||
(builtins.readFile ./git-sync-all.sh))
|
||||
(pkgs.writeShellScriptBin "rsync-local-config"
|
||||
(builtins.readFile ./rsync-local-config.sh))
|
||||
(pkgs.writeShellScriptBin "xdg-query-program"
|
||||
(builtins.readFile ./xdg-query-program.sh))
|
||||
];
|
||||
}
|
|
@ -1,55 +0,0 @@
|
|||
# Sync common directories, setting url to ensure it's up-to-date first
|
||||
SYNC_DIRS=(
|
||||
"$HOME/.password-store/"
|
||||
"$HOME/.elfeed/"
|
||||
"$HOME/Documents/Org/"
|
||||
"$HOME/Documents/References/"
|
||||
)
|
||||
SYNC_URLS=(
|
||||
"https://git.xenia.me.uk/pixelifytica/pass.git"
|
||||
"https://git.xenia.me.uk/pixelifytica/elfeed.git"
|
||||
"https://git.xenia.me.uk/pixelifytica/org.git"
|
||||
"https://git.xenia.me.uk/pixelifytica/references.git"
|
||||
)
|
||||
|
||||
for i in "${!SYNC_DIRS[@]}"; do
|
||||
DIRECTORY="${SYNC_DIRS[$i]}"
|
||||
URL="${SYNC_URLS[$i]}"
|
||||
echo "--- sync: $DIRECTORY ---"
|
||||
if [ ! -d "$DIRECTORY" ]; then
|
||||
git clone "$URL" "$DIRECTORY"
|
||||
fi
|
||||
(
|
||||
cd "$DIRECTORY" || exit
|
||||
git remote set-url origin "$URL"
|
||||
git-sync -ns
|
||||
)
|
||||
done
|
||||
|
||||
# Pull NixOS and Emacs config if simple fast-forward
|
||||
PULL_DIRS=(
|
||||
"/etc/nixos"
|
||||
"${XDG_CONFIG_HOME:-$HOME/.config}/emacs"
|
||||
)
|
||||
PULL_URLS=(
|
||||
"https://git.xenia.me.uk/pixelifytica/nixos.git"
|
||||
"https://git.xenia.me.uk/pixelifytica/emacs.git"
|
||||
)
|
||||
for i in "${!PULL_DIRS[@]}"; do
|
||||
DIRECTORY="${PULL_DIRS[$i]}"
|
||||
URL="${PULL_URLS[$i]}"
|
||||
echo "--- pull: $DIRECTORY ---"
|
||||
if [ ! -d "$DIRECTORY" ]; then
|
||||
git clone "$URL" "$DIRECTORY"
|
||||
fi
|
||||
(
|
||||
cd "$DIRECTORY" || exit
|
||||
if [ "$(git branch --show-current)" = "main" ]; then
|
||||
git remote set-url origin "$URL"
|
||||
git pull --ff-only
|
||||
git push
|
||||
else
|
||||
echo "Not syncing repo $DIRECTORY on branch $(git branch --show-current)"
|
||||
fi
|
||||
)
|
||||
done
|
|
@ -1,25 +0,0 @@
|
|||
HOST=$1
|
||||
# Config files
|
||||
for TARGET in bat bottom git starship.toml; do
|
||||
SOURCE="$HOME/.config/$TARGET"
|
||||
echo "--- $SOURCE ---"
|
||||
TMP_TARGET=/tmp/rsync-local-config
|
||||
TMP_SOURCE=$TMP_TARGET
|
||||
NIX_SED="sed -i 's|/nix/.*/bin/||g'"
|
||||
NIX_REPLACE="$NIX_SED $TMP_TARGET"
|
||||
if [[ -e $SOURCE ]]; then
|
||||
if [[ -d $SOURCE ]]; then
|
||||
SOURCE=$SOURCE/
|
||||
TMP_SOURCE=$TMP_SOURCE/
|
||||
NIX_REPLACE="fd -g '**' $TMP_TARGET -tfile -x $NIX_SED {};"
|
||||
fi
|
||||
rsync -avzL --exclude=".git*" --chmod=Du=rwx,Dg=rx,Do=rx,Fu=rw,Fg=r,Fo=r "$SOURCE" $TMP_TARGET
|
||||
sh -c "$NIX_REPLACE"
|
||||
rsync -avzL --delete --exclude=".git*" $TMP_SOURCE "$HOST:.config/$TARGET"
|
||||
rm -rf $TMP_SOURCE
|
||||
fi
|
||||
done
|
||||
|
||||
# Fonts
|
||||
rsync -avzL --delete --exclude=".git*" --chmod=Du=rwx,Dg=rx,Do=rx,Fu=rw,Fg=r,Fo=r "$(nix path-info flake:iosevka#packages.x86_64-linux.iosevka-custom-nerdfont)/share/fonts/truetype/" "$HOST:.fonts/IosevkaCustomNerdFont"
|
||||
rsync -avzL --delete --exclude=".git*" --chmod=Du=rwx,Dg=rx,Do=rx,Fu=rw,Fg=r,Fo=r "$(nix path-info flake:iosevka#packages.x86_64-linux.iosevka-custom-aile)/share/fonts/truetype/" "$HOST:.fonts/IosevkaCustomAile"
|
|
@ -1,38 +0,0 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
--[[
|
||||
#!nix-shell -i lua -p git git-sync
|
||||
]]
|
||||
local config_home
|
||||
if os.getenv("XDG_CONFIG_HOME") then
|
||||
config_home = os.getenv("XDG_CONFIG_HOME")
|
||||
else
|
||||
config_home = "~/.config/"
|
||||
end
|
||||
|
||||
local sync_mapping = {
|
||||
["~/.password-store"] = "https://git.xenia.me.uk/pixelifytica/pass.git",
|
||||
["~/.elfeed"] = "https://git.xenia.me.uk/pixelifytica/elfeed.git",
|
||||
["~/Documents/Org"] = "https://git.xenia.me.uk/pixelifytica/org.git",
|
||||
["~/Documents/References"] = "https://git.xenia.me.uk/pixelifytica/references.git",
|
||||
}
|
||||
|
||||
local pull_mapping = {
|
||||
["/etc/nixos"] = "https://git.xenia.me.uk/pixelifytica/nixos.git",
|
||||
[config_home .. "/emacs"] = "https://git.xenia.me.uk/pixelifytica/emacs.git",
|
||||
}
|
||||
|
||||
local function git_sync(directory, url)
|
||||
print("--- sync: " .. directory .. " ---")
|
||||
end
|
||||
|
||||
local function git_pull(directory, url, ff_only)
|
||||
print("--- pull: " .. directory .. " ---")
|
||||
end
|
||||
|
||||
for directory, url in pairs(sync_mapping) do
|
||||
git_sync(directory, url)
|
||||
end
|
||||
|
||||
for directory, url in pairs(pull_mapping) do
|
||||
git_pull(directory, url, true)
|
||||
end
|
|
@ -1,68 +0,0 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i python3 -p git git-sync
|
||||
|
||||
import os
|
||||
import queue
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
from typing import Dict
|
||||
|
||||
HOME = Path("~").expanduser().resolve()
|
||||
|
||||
SYNC_MAPPING: Dict[Path, str] = {
|
||||
Path(
|
||||
"~/.password-store"
|
||||
).expanduser(): "https://git.xenia.me.uk/pixelifytica/pass.git",
|
||||
Path("~/.elfeed").expanduser(): "https://git.xenia.me.uk/pixelifytica/elfeed.git",
|
||||
Path(
|
||||
"~/Documents/Org"
|
||||
).expanduser(): "https://git.xenia.me.uk/pixelifytica/org.git",
|
||||
Path(
|
||||
"~/Documents/References"
|
||||
).expanduser(): "https://git.xenia.me.uk/pixelifytica/references.git",
|
||||
}
|
||||
|
||||
PULL_MAPPINGS: Dict[Path, str] = {
|
||||
Path("/etc/nixos"): "https://git.xenia.me.uk/pixelifytica/nixos.git",
|
||||
Path(os.getenv("XDG_CONFIG_HOME", "~/.config")).expanduser()
|
||||
/ "emacs": "https://git.xenia.me.uk/pixelifytica/emacs.git",
|
||||
}
|
||||
|
||||
|
||||
def git_set_url(directory: Path, url: str) -> None:
|
||||
"""Set url for directory"""
|
||||
comp = subprocess.run(f"git remote set-url origin {url}".split(), cwd=directory)
|
||||
if comp.returncode != 0:
|
||||
raise UserWarning(f"{comp.returncode} from {' '.join(comp.args)}")
|
||||
subprocess.run("git remote -v".split(), cwd=directory)
|
||||
|
||||
|
||||
def git_sync(directory: Path, url: str) -> subprocess.CompletedProcess:
|
||||
"""Sync status of repository"""
|
||||
print(f"--- sync: ${directory} ---")
|
||||
if not directory.exists():
|
||||
return subprocess.run("exit 1".split()) # TODO
|
||||
git_set_url(directory, url)
|
||||
return subprocess.run("git-sync -ns".split(), cwd=directory)
|
||||
|
||||
|
||||
def git_pull(
|
||||
directory: Path, url: str, ff_only: bool = True
|
||||
) -> subprocess.CompletedProcess:
|
||||
"""Pull updates for directory from url"""
|
||||
print(f"--- pull: {directory} ---")
|
||||
if not directory.exists():
|
||||
return subprocess.run("exit 1".split()) # TODO
|
||||
git_set_url(directory, url)
|
||||
return subprocess.run("git pull --ff-only".split(), cwd=directory)
|
||||
|
||||
|
||||
def main(*args, **kwargs) -> None:
|
||||
for directory, url in SYNC_MAPPING.items():
|
||||
print(git_sync(directory, url))
|
||||
for directory, url in PULL_MAPPINGS.items():
|
||||
print(git_pull(directory, url))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
|
@ -1,3 +0,0 @@
|
|||
FILETYPE=$(xdg-mime query filetype $@)
|
||||
DEFAULT=$(xdg-mime query default $FILETYPE)
|
||||
echo "$FILETYPE -> $DEFAULT"
|
|
@ -1,75 +0,0 @@
|
|||
{...}: {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableTransience = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
character = {
|
||||
success_symbol = "[ ](bold green)";
|
||||
error_symbol = "[ ](bold red)";
|
||||
};
|
||||
command_timeout = 2000;
|
||||
container = {symbol = " ";};
|
||||
directory = {
|
||||
truncation_length = 2;
|
||||
fish_style_pwd_dir_length = 1;
|
||||
truncate_to_repo = false;
|
||||
};
|
||||
direnv = {disabled = false;};
|
||||
git_branch = {
|
||||
symbol = " ";
|
||||
only_attached = true;
|
||||
ignore_branches = ["master" "main"];
|
||||
};
|
||||
git_commit = {
|
||||
format = "[ $hash | $tag]($style) ";
|
||||
tag_symbol = " ";
|
||||
tag_disabled = false;
|
||||
};
|
||||
git_metrics = {disabled = false;};
|
||||
git_status = {
|
||||
stashed = " ";
|
||||
ahead = " ";
|
||||
behind = " ";
|
||||
up_to_date = "";
|
||||
diverged = " ";
|
||||
conflicted = " ";
|
||||
deleted = " ";
|
||||
renamed = " ";
|
||||
modified = " ";
|
||||
staged = " ";
|
||||
untracked = " ";
|
||||
typechanged = " ";
|
||||
};
|
||||
hostname = {
|
||||
ssh_only = true;
|
||||
ssh_symbol = " ";
|
||||
};
|
||||
jobs = {symbol = " ";};
|
||||
line_break = {disabled = false;};
|
||||
localip = {disabled = false;};
|
||||
memory_usage = {disabled = false;};
|
||||
os = {
|
||||
disabled = false;
|
||||
format = "on [$symbol]($style) ";
|
||||
};
|
||||
python = {python_binary = "python3";};
|
||||
shell = {
|
||||
disabled = false;
|
||||
format = "using [$indicator ]($style)";
|
||||
};
|
||||
status = {
|
||||
disabled = false;
|
||||
map_symbol = true;
|
||||
pipestatus = true;
|
||||
symbol = " ";
|
||||
success_symbol = "";
|
||||
not_executable_symbol = " ";
|
||||
not_found_symbol = " ";
|
||||
sigint_symbol = " ";
|
||||
signal_symbol = " ";
|
||||
};
|
||||
sudo = {disabled = false;};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,181 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
fonts,
|
||||
scheme,
|
||||
accentColour ? "base07",
|
||||
...
|
||||
}: {
|
||||
imports = [../desktop.nix];
|
||||
home.packages = with pkgs; [
|
||||
(writeShellScriptBin "protonmail-setup-bridge" ''
|
||||
pkill -9 -f protonmail-bridge
|
||||
${protonmail-bridge}/bin/protonmail-bridge -c
|
||||
swaymsg exec "${protonmail-bridge}/bin/protonmail-bridge -n"
|
||||
'')
|
||||
(writeShellScriptBin "davmail-setup" ''
|
||||
systemctl --user restart davmail # Ensure config file is present
|
||||
systemctl --user stop davmail
|
||||
${davmail}/bin/davmail -n ~/.davmail.properties
|
||||
systemctl --user restart davmail
|
||||
'')
|
||||
];
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
package = null;
|
||||
swaynag.enable = true;
|
||||
systemd.enable = true;
|
||||
xwayland = true;
|
||||
config = {
|
||||
input = {
|
||||
"*" = {
|
||||
xkb_layout = "gb";
|
||||
xkb_options = "ctrl:nocaps";
|
||||
};
|
||||
"type:touchpad" = {
|
||||
tap = "enabled";
|
||||
natural_scroll = "enabled";
|
||||
};
|
||||
};
|
||||
seat = {
|
||||
"seat0" = {
|
||||
xcursor_theme = with config.gtk.cursorTheme; "${name} ${toString size}";
|
||||
};
|
||||
};
|
||||
modifier = "Mod4";
|
||||
terminal = "${config.programs.alacritty.package}/bin/alacritty";
|
||||
menu = "${config.programs.rofi.finalPackage}/bin/rofi -show drun";
|
||||
workspaceAutoBackAndForth = true;
|
||||
bars = [];
|
||||
gaps = {
|
||||
inner = 5;
|
||||
outer = 0;
|
||||
};
|
||||
fonts = {
|
||||
names = [fonts.monospace.name];
|
||||
style = "regular";
|
||||
size = fonts.sizes.desktop * 1.0;
|
||||
};
|
||||
colors = with scheme.withHashtag; let
|
||||
text = toString base05;
|
||||
indicator = toString cyan;
|
||||
in rec {
|
||||
background = toString base00;
|
||||
focused = rec {
|
||||
inherit background text indicator;
|
||||
border = toString scheme.withHashtag.${accentColour};
|
||||
childBorder = border;
|
||||
};
|
||||
focusedInactive = rec {
|
||||
inherit background text indicator;
|
||||
border = toString base04;
|
||||
childBorder = border;
|
||||
};
|
||||
unfocused = rec {
|
||||
inherit background text indicator;
|
||||
border = toString base03;
|
||||
childBorder = border;
|
||||
};
|
||||
urgent = rec {
|
||||
inherit background text indicator;
|
||||
border = toString red;
|
||||
childBorder = border;
|
||||
};
|
||||
};
|
||||
startup = [
|
||||
{command = "${pkgs.swaynotificationcenter}/bin/swaync";}
|
||||
{command = "${pkgs.swaybg}/bin/swaybg -m fill -i ${../../wallpapers/waves/cat-waves.png}";}
|
||||
{command = "${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";}
|
||||
{command = "${pkgs.protonmail-bridge}/bin/protonmail-bridge -n";}
|
||||
];
|
||||
window = {
|
||||
border = 1;
|
||||
commands = [
|
||||
{
|
||||
criteria = {app_id = "org.kde.polkit-kde-authentication-agent-1";};
|
||||
command = "floating enable";
|
||||
}
|
||||
{
|
||||
criteria = {app_id = "Pinentry";};
|
||||
command = "floating enable";
|
||||
}
|
||||
{
|
||||
criteria = {app_id = "pavucontrol";};
|
||||
command = "floating enable";
|
||||
}
|
||||
{
|
||||
criteria = {app_id = ".blueman-manager-wrapped";};
|
||||
command = "floating enable";
|
||||
}
|
||||
{
|
||||
criteria = {app_id = "nm-connection-editor";};
|
||||
command = "floating enable";
|
||||
}
|
||||
{
|
||||
criteria = {class = "steam";};
|
||||
command = "layout tabbed";
|
||||
}
|
||||
];
|
||||
};
|
||||
floating.border = 1;
|
||||
keybindings = with config; let
|
||||
modifier = wayland.windowManager.sway.config.modifier;
|
||||
in
|
||||
lib.mkOptionDefault {
|
||||
# Movement
|
||||
"${modifier}+comma" = "workspace prev";
|
||||
"${modifier}+period" = "workspace next";
|
||||
"${modifier}+shift+comma" = "move workspace prev";
|
||||
"${modifier}+shift+period" = "move workspace next";
|
||||
"${modifier}+bracketleft" = "move workspace to output left";
|
||||
"${modifier}+bracketright" = "move workspace to output right";
|
||||
|
||||
# Function keys
|
||||
## Sound
|
||||
"XF86AudioMute" = "exec ${services.avizo.package}/bin/volumectl %";
|
||||
"XF86AudioMicMute" = "exec ${services.avizo.package}/bin/volumectl -m %";
|
||||
"XF86AudioRaiseVolume" = "exec ${services.avizo.package}/bin/volumectl -u + 5";
|
||||
"XF86AudioLowerVolume" = "exec ${services.avizo.package}/bin/volumectl -u - 5";
|
||||
|
||||
## Playback
|
||||
"XF86AudioPlay" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
||||
"XF86AudioStop" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
||||
"XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous";
|
||||
"XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next";
|
||||
|
||||
## Brightness
|
||||
"XF86MonBrightnessUp" = "exec ${services.avizo.package}/bin/lightctl + 5";
|
||||
"XF86MonBrightnessDown" = "exec ${services.avizo.package}/bin/lightctl - 5";
|
||||
|
||||
# System utilities
|
||||
"${modifier}+F1" = "exec ${programs.swaylock.package}/bin/swaylock --screenshots --clock --indicator --grace-no-mouse";
|
||||
"${modifier}+p" = "exec ${programs.wlogout.package}/bin/wlogout";
|
||||
"${modifier}+z" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw";
|
||||
"${modifier}+Shift+z" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -d -sw";
|
||||
"${modifier}+Shift+Return" = "exec ${programs.emacs.finalPackage}/bin/emacsclient -c";
|
||||
};
|
||||
};
|
||||
extraConfig = ''
|
||||
bindgesture swipe:right workspace prev
|
||||
bindgesture swipe:left workspace next
|
||||
corner_radius 10
|
||||
blur enable
|
||||
blur_xray disable
|
||||
blur_passes 3
|
||||
blur_radius 5
|
||||
corner_radius 10
|
||||
shadows enable
|
||||
shadow_blur_radius 4
|
||||
layer_effects "system-menu" blur enable; blur_ignore_transparent enable; shadows disable
|
||||
layer_effects "gtk-layer-shell" blur enable; blur_ignore_transparent enable; shadows disable
|
||||
layer_effects "waybar" blur enable; blur_ignore_transparent enable; shadows disable
|
||||
layer_effects "rofi" blur enable; blur_ignore_transparent enable; shadows disable
|
||||
layer_effects "avizo" blur enable; blur_ignore_transparent enable; shadows disable
|
||||
layer_effects "swaync-notification-window" blur enable; blur_ignore_transparent enable; shadows disable
|
||||
layer_effects "swaync-control-center" blur enable; blur_ignore_transparent enable; shadows disable
|
||||
titlebar_separator enable
|
||||
scratchpad_minimize enable
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
package = pkgs.swaylock-effects;
|
||||
# Settings are specifically for swaylock-effects
|
||||
settings = {
|
||||
indicator-radius = 100;
|
||||
indicator-thickness = 10;
|
||||
indicator-caps-lock = true;
|
||||
ignore-empty-password = true;
|
||||
show-failed-attempts = true;
|
||||
effect-blur = "5x3";
|
||||
effect-vignette = "0.5:0.5";
|
||||
grace = 2;
|
||||
fade-in = 0.2;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,355 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
fonts,
|
||||
scheme,
|
||||
accentColour ? "base07",
|
||||
...
|
||||
}: {
|
||||
home.packages = [pkgs.swaynotificationcenter];
|
||||
xdg.configFile."swaync/style.css".text = with scheme; ''
|
||||
* {
|
||||
all: unset;
|
||||
font-size: 1.2rem;
|
||||
font-family: "${fonts.monospace.name}";
|
||||
transition: 200ms;
|
||||
}
|
||||
|
||||
.floating-notifications.background .notification-row .notification-background {
|
||||
border-radius: 10px;
|
||||
border: 1px solid ${withHashtag.${accentColour}};
|
||||
margin: 18px;
|
||||
background-color: rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, 0.8);
|
||||
color: ${withHashtag.base05};
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification {
|
||||
padding: 7px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
.notification-content {
|
||||
margin: 7px;
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
.notification-content
|
||||
.summary {
|
||||
color: ${withHashtag.base05};
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
.notification-content
|
||||
.time {
|
||||
color: ${withHashtag.base04};
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
.notification-content
|
||||
.body {
|
||||
color: ${withHashtag.base05};
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
> *:last-child
|
||||
> * {
|
||||
min-height: 3.4em;
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
> *:last-child
|
||||
> *
|
||||
.notification-action {
|
||||
border-radius: 10px;
|
||||
background-color: ${withHashtag.base01};
|
||||
color: ${withHashtag.base05};
|
||||
margin: 7px;
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
> *:last-child
|
||||
> *
|
||||
.notification-action:hover {
|
||||
background-color: ${withHashtag.base01};
|
||||
color: ${withHashtag.base05};
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
> *:last-child
|
||||
> *
|
||||
.notification-action:active {
|
||||
background-color: ${withHashtag.blue};
|
||||
color: ${withHashtag.base00};
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.close-button {
|
||||
margin: 7px;
|
||||
padding: 2px;
|
||||
border-radius: 10px;
|
||||
background-color: ${withHashtag.red};
|
||||
color: ${withHashtag.base00};
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.close-button:hover {
|
||||
background-color: ${withHashtag.red};
|
||||
color: ${withHashtag.base00};
|
||||
}
|
||||
|
||||
.floating-notifications.background
|
||||
.notification-row
|
||||
.notification-background
|
||||
.close-button:active {
|
||||
background-color: ${withHashtag.red};
|
||||
color: ${withHashtag.base00};
|
||||
}
|
||||
|
||||
.control-center {
|
||||
border-radius: 10px;
|
||||
border: 1px solid ${withHashtag.${accentColour}};
|
||||
margin: 18px;
|
||||
background-color: rgba(${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, 0.8);
|
||||
color: ${withHashtag.base05};
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.control-center .widget-title {
|
||||
color: ${withHashtag.base05};
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.control-center .widget-title button {
|
||||
border-radius: 7px;
|
||||
background-color: ${withHashtag.base01};
|
||||
color: ${withHashtag.base05};
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.control-center .widget-title button:hover {
|
||||
background-color: ${withHashtag.base02};
|
||||
color: ${withHashtag.base05};
|
||||
}
|
||||
|
||||
.control-center .widget-title button:active {
|
||||
background-color: ${withHashtag.base03};
|
||||
color: ${withHashtag.base05};
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background {
|
||||
border-radius: 10px;
|
||||
background-color: ${withHashtag.base01};
|
||||
color: ${withHashtag.base05};
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .notification {
|
||||
padding: 7px;
|
||||
border-radius: 7px;
|
||||
}
|
||||
|
||||
.control-center
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
.notification-content {
|
||||
margin: 7px;
|
||||
}
|
||||
|
||||
.control-center
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
.notification-content
|
||||
.summary {
|
||||
color: ${withHashtag.base05};
|
||||
}
|
||||
|
||||
.control-center
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
.notification-content
|
||||
.time {
|
||||
color: ${withHashtag.base04};
|
||||
}
|
||||
|
||||
.control-center
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
.notification-content
|
||||
.body {
|
||||
color: ${withHashtag.base05};
|
||||
}
|
||||
|
||||
.control-center
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
> *:last-child
|
||||
> * {
|
||||
min-height: 3.4em;
|
||||
}
|
||||
|
||||
.control-center
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
> *:last-child
|
||||
> *
|
||||
.notification-action {
|
||||
border-radius: 7px;
|
||||
background-color: ${withHashtag.base00};
|
||||
color: ${withHashtag.base05};
|
||||
margin: 7px;
|
||||
}
|
||||
|
||||
.control-center
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
> *:last-child
|
||||
> *
|
||||
.notification-action:hover {
|
||||
background-color: ${withHashtag.base01};;
|
||||
color: ${withHashtag.base05};
|
||||
}
|
||||
|
||||
.control-center
|
||||
.notification-row
|
||||
.notification-background
|
||||
.notification
|
||||
> *:last-child
|
||||
> *
|
||||
.notification-action:active {
|
||||
background-color: ${withHashtag.blue};
|
||||
color: ${withHashtag.base05};
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .close-button {
|
||||
margin: 7px;
|
||||
padding: 2px;
|
||||
border-radius: 6.3px;
|
||||
background-color: ${withHashtag.red};
|
||||
color: ${withHashtag.base00};
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background .close-button:hover {
|
||||
background-color: ${withHashtag.red};
|
||||
color: ${withHashtag.base00};
|
||||
}
|
||||
|
||||
.control-center
|
||||
.notification-row
|
||||
.notification-background
|
||||
.close-button:active {
|
||||
background-color: ${withHashtag.red};
|
||||
color: ${withHashtag.base00};
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background:hover {
|
||||
background-color: ${withHashtag.base00};
|
||||
color: ${withHashtag.base05};
|
||||
}
|
||||
|
||||
.control-center .notification-row .notification-background:active {
|
||||
background-color: ${withHashtag.blue};
|
||||
color: ${withHashtag.base05};
|
||||
}
|
||||
|
||||
progressbar,
|
||||
progress,
|
||||
trough {
|
||||
border-radius: 12.6px;
|
||||
}
|
||||
|
||||
.notification.critical progress {
|
||||
background-color: ${withHashtag.red};
|
||||
}
|
||||
|
||||
.notification.low progress,
|
||||
.notification.normal progress {
|
||||
background-color: ${withHashtag.blue};
|
||||
}
|
||||
|
||||
trough {
|
||||
background-color: ${withHashtag.base00};
|
||||
}
|
||||
|
||||
.control-center trough {
|
||||
background-color: ${withHashtag.base03};
|
||||
}
|
||||
|
||||
.control-center-dnd {
|
||||
margin-top: 5px;
|
||||
border-radius: 8px;
|
||||
background: ${withHashtag.base00};
|
||||
border: 1px solid ${withHashtag.base03};
|
||||
}
|
||||
|
||||
.control-center-dnd:checked {
|
||||
background: ${withHashtag.base00};
|
||||
}
|
||||
|
||||
.control-center-dnd slider {
|
||||
background: ${withHashtag.base03};
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.widget-dnd {
|
||||
margin: 0px;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.widget-dnd > switch {
|
||||
font-size: initial;
|
||||
border-radius: 8px;
|
||||
background: ${withHashtag.base00};
|
||||
border: 1px solid ${withHashtag.base03};
|
||||
}
|
||||
|
||||
.widget-dnd > switch:checked {
|
||||
background: ${withHashtag.base00};
|
||||
}
|
||||
|
||||
.widget-dnd > switch slider {
|
||||
background: ${withHashtag.base01};
|
||||
border-radius: 8px;
|
||||
border: 1px solid ${withHashtag.${accentColour}};
|
||||
}
|
||||
|
||||
'';
|
||||
}
|
|
@ -1,354 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
hostName,
|
||||
fonts,
|
||||
scheme,
|
||||
accentColour ? "base07",
|
||||
...
|
||||
}: {
|
||||
systemd.user.targets.tray.Unit = {
|
||||
Description = "Home Manager System Tray";
|
||||
Requires = ["graphical-session-pre.target"];
|
||||
};
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
target = "sway-session.target";
|
||||
};
|
||||
settings = rec {
|
||||
main = {
|
||||
name = "main";
|
||||
layer = "top";
|
||||
position = "top";
|
||||
# Layout
|
||||
"modules-left" = ["mpris"];
|
||||
"modules-center" = ["sway/workspaces"];
|
||||
"modules-right" = [
|
||||
"custom/notification"
|
||||
"pulseaudio"
|
||||
"network"
|
||||
"bluetooth"
|
||||
"clock#calendar"
|
||||
"clock"
|
||||
"backlight"
|
||||
"battery"
|
||||
"custom/weather"
|
||||
"tray"
|
||||
];
|
||||
# Module config
|
||||
"sway/workspaces" = {
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
"1" = " ";
|
||||
"2" = " ";
|
||||
"3" = " ";
|
||||
"4" = " ";
|
||||
"5" = " ";
|
||||
"6" = " ";
|
||||
default = " ";
|
||||
urgent = " ";
|
||||
};
|
||||
# show-special = false;
|
||||
# sort-by-number = true;
|
||||
all-outputs = false;
|
||||
persistent-workspaces = {
|
||||
"1" = [];
|
||||
"2" = [];
|
||||
"3" = [];
|
||||
"4" = [];
|
||||
"5" = [];
|
||||
"6" = [];
|
||||
};
|
||||
};
|
||||
"sway/window" = {
|
||||
"format" = "{title}";
|
||||
"max-length" = 50;
|
||||
"rewrite" = {
|
||||
"(.*) - GNU Emacs at (.*)" = " $1 [$2]";
|
||||
"(Alacritty.*)" = " $1";
|
||||
"(.*) - mpv" = " $1";
|
||||
"swayimg: (.*)" = " $1";
|
||||
"(btm)" = " Resource Usage [$1]";
|
||||
"(cava)" = " Music Visualiser [$1]";
|
||||
"(.*) - Thunar" = " $1";
|
||||
"Mozilla Firefox" = " $1";
|
||||
"(.*) — Mozilla Firefox" = " $1";
|
||||
"Nyxt - (.*)" = " $1";
|
||||
"(.*) - Chromium" = " $1";
|
||||
"((?:.*)WebCord.*)" = " $1";
|
||||
"(Signal.*)" = " $1";
|
||||
"([Ss]team)" = " $1";
|
||||
"(Prism Launcher.*)" = " Minecraft ($1)";
|
||||
"(X2Go Client)" = " $1";
|
||||
"(NoMachine|Nxplayer.bin) (.*)" = " $1 $2";
|
||||
};
|
||||
};
|
||||
mpris = {
|
||||
"format" = "{status_icon} {player_icon} {artist} - {title}";
|
||||
"tooltip-format" = "{player_icon} ({player}) {dynamic}";
|
||||
"title-len" = 64;
|
||||
"interval" = 1;
|
||||
"dynamic-order" = [
|
||||
"album"
|
||||
"artist"
|
||||
"title"
|
||||
"position"
|
||||
"length"
|
||||
];
|
||||
"player-icons" = {
|
||||
"default" = " ";
|
||||
"emms" = " ";
|
||||
"firefox" = " ";
|
||||
"mpv" = " ";
|
||||
};
|
||||
"status-icons" = {
|
||||
"playing" = "";
|
||||
"paused" = "";
|
||||
"stopped" = "";
|
||||
};
|
||||
"ignored-players" = [];
|
||||
};
|
||||
pulseaudio = {
|
||||
scroll-step = 5;
|
||||
format = "{format_source}{icon}{volume}%";
|
||||
format-muted = "{format_source} ";
|
||||
format-source = " ";
|
||||
format-source-muted = " ";
|
||||
format-icons = {
|
||||
car = " ";
|
||||
default = [" " " " " "];
|
||||
hands-free = " ";
|
||||
headset = " ";
|
||||
phone = " ";
|
||||
portable = " ";
|
||||
headphone = " ";
|
||||
};
|
||||
on-click = "${pkgs.pavucontrol}/bin/pavucontrol";
|
||||
on-click-right = "${pkgs.pamixer}/bin/pamixer -t";
|
||||
on-scroll-up = "${pkgs.pamixer}/bin/pamixer -i 5";
|
||||
on-scroll-down = "${pkgs.pamixer}/bin/pamixer -d 5";
|
||||
};
|
||||
disk = {
|
||||
format = " {percentage_used}%";
|
||||
path = config.home.homeDirectory;
|
||||
};
|
||||
cpu = {
|
||||
format = " {usage}%";
|
||||
tooltip = false;
|
||||
};
|
||||
memory = {format = " {}%";};
|
||||
temperature = {
|
||||
critical-threshold = 80;
|
||||
format = "{icon} {temperatureC}°C";
|
||||
format-icons = ["" "" ""];
|
||||
};
|
||||
network = {
|
||||
format-icons = [" " " " " " " "];
|
||||
format-wifi = "{icon}";
|
||||
format-ethernet = " ";
|
||||
tooltip-format = "{essid} ({signalStrength}%)";
|
||||
format-linked = " ";
|
||||
format-disconnected = " ";
|
||||
};
|
||||
bluetooth = {
|
||||
format = "";
|
||||
format-disabled = "";
|
||||
format-off = "";
|
||||
format-on = "";
|
||||
format-connected = "";
|
||||
tooltip-format = "{status} | {device_alias}";
|
||||
on-click = "${pkgs.bluez}/bin/bluetoothctl power on";
|
||||
on-click-right = "${pkgs.bluez}/bin/bluetoothctl power off";
|
||||
};
|
||||
"clock#calendar" = {
|
||||
# format = "{: %Y-%m-%d}";
|
||||
format = "{:%Y-%m-%d}"; # TEMP, see https://github.com/Alexays/Waybar/issues/3021
|
||||
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
||||
calendar = {
|
||||
mode = "month";
|
||||
mode-mon-col = 3;
|
||||
weeks-pos = "left";
|
||||
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><u>{}</u></b></span>";
|
||||
};
|
||||
};
|
||||
actions = {
|
||||
on-click-right = "mode";
|
||||
on-scroll-up = "shift_up";
|
||||
on-scroll-down = "shift_down";
|
||||
};
|
||||
};
|
||||
clock = {
|
||||
# format = "{: %R}";
|
||||
format = "{:%R}"; # TEMP, see https://github.com/Alexays/Waybar/issues/3021
|
||||
};
|
||||
backlight = {
|
||||
format = "{icon}";
|
||||
tooltip-format = "{percent}%";
|
||||
format-icons = [" " " " " " " " " " " " " " " " " "];
|
||||
};
|
||||
battery = {
|
||||
states = {
|
||||
warning = 30;
|
||||
critical = 20;
|
||||
};
|
||||
format = "{icon}";
|
||||
format-charging = " ";
|
||||
format-plugged = " ";
|
||||
tooltip-format = "{capacity}% {time}";
|
||||
format-icons = [" " " " " " " " " " " " " " " " " " " " " "];
|
||||
};
|
||||
"custom/notification" = let
|
||||
swaync = pkgs.swaynotificationcenter;
|
||||
in {
|
||||
"tooltip" = false;
|
||||
"format" = "{icon}{}";
|
||||
"format-icons" = {
|
||||
"notification" = " ";
|
||||
"none" = " ";
|
||||
"dnd-notification" = " ";
|
||||
"dnd-none" = " ";
|
||||
"inhibited-notification" = " ";
|
||||
"inhibited-none" = " ";
|
||||
"dnd-inhibited-notification" = " ";
|
||||
"dnd-inhibited-none" = " ";
|
||||
};
|
||||
"return-type" = "json";
|
||||
"exec-if" = "which ${swaync}/bin/swaync-client";
|
||||
"exec" = "${swaync}/bin/swaync-client -swb";
|
||||
"on-click" = "${swaync}/bin/swaync-client -t -sw";
|
||||
"on-click-right" = "${swaync}/bin/swaync-client -d -sw";
|
||||
"escape" = true;
|
||||
};
|
||||
"custom/weather" = let
|
||||
date-format = "%Y-%m-%d";
|
||||
custom-indicator = "{ICON}{temp_C}({FeelsLikeC})";
|
||||
in {
|
||||
"format" = "{}°";
|
||||
"tooltip" = true;
|
||||
"interval" = 900; # Every 15 minutes
|
||||
"exec" = ''${pkgs.wttrbar}/bin/wttrbar --location Didcot --date-format "${date-format}" --custom-indicator "${custom-indicator}"'';
|
||||
"return-type" = "json";
|
||||
};
|
||||
tray = {
|
||||
icon-size = builtins.floor fonts.sizes.popups;
|
||||
show-passive-items = true;
|
||||
spacing = 5;
|
||||
};
|
||||
};
|
||||
# TEMP FIX
|
||||
alt = lib.mkIf (hostName == "Vanguard") {
|
||||
inherit (main) layer position "sway/workspaces";
|
||||
name = "alt";
|
||||
"modules-left" = [];
|
||||
"modules-center" = ["sway/workspaces"];
|
||||
"modules-right" = [];
|
||||
};
|
||||
};
|
||||
style = with scheme.withHashtag; let
|
||||
accent = scheme.withHashtag.${accentColour};
|
||||
in ''
|
||||
* {
|
||||
all: unset;
|
||||
font-size: 1em;
|
||||
font-family: ${fonts.monospace.name};
|
||||
}
|
||||
|
||||
window {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
window > box {
|
||||
color: ${base05};
|
||||
background: alpha(${base00}, 0.8);
|
||||
margin: 5px 5px 0px;
|
||||
padding: 0px;
|
||||
border: 1px solid ${accent};
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background: alpha(${base00}, 0.8);
|
||||
border: 1px solid ${accent};
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
tooltip label {
|
||||
color: ${base05};
|
||||
border: none;
|
||||
padding: 5px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
#workspaces,
|
||||
#window,
|
||||
#mpris,
|
||||
#pulseaudio,
|
||||
#network,
|
||||
#bluetooth,
|
||||
#backlight,
|
||||
#battery,
|
||||
#clock,
|
||||
#custom-notification,
|
||||
#custom-weather,
|
||||
#tray {
|
||||
margin: 0px;
|
||||
padding: 1px 5px;
|
||||
}
|
||||
|
||||
#workspaces,
|
||||
#window,
|
||||
#mpris,
|
||||
#tray,
|
||||
#backlight,
|
||||
#battery,
|
||||
#custom-weather {
|
||||
color: ${base05};
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
background: transparent;
|
||||
color: ${base05};
|
||||
margin: 0px;
|
||||
padding: 0px 5px;
|
||||
}
|
||||
#workspaces button.persistent {
|
||||
color: ${base03};
|
||||
}
|
||||
#workspaces button.focused {
|
||||
color: ${accent};
|
||||
}
|
||||
#workspaces button.urgent {
|
||||
color: ${base09};
|
||||
}
|
||||
|
||||
#custom-notification {
|
||||
color: ${base08};
|
||||
}
|
||||
#pulseaudio {
|
||||
color: ${base09};
|
||||
}
|
||||
#network {
|
||||
color: ${base0A};
|
||||
}
|
||||
#bluetooth {
|
||||
color: ${base0B};
|
||||
}
|
||||
#clock.calendar {
|
||||
color: ${base0C};
|
||||
}
|
||||
#clock {
|
||||
color: ${base0D};
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -1,79 +0,0 @@
|
|||
{
|
||||
fonts,
|
||||
scheme,
|
||||
accentColour ? "base07",
|
||||
...
|
||||
}: {
|
||||
programs.wlogout = {
|
||||
enable = true;
|
||||
layout = [
|
||||
{
|
||||
label = "reboot";
|
||||
action = "systemctl reboot";
|
||||
text = "Reboot";
|
||||
keybind = "r";
|
||||
}
|
||||
{
|
||||
label = "shutdown";
|
||||
action = "systemctl poweroff";
|
||||
text = "Shutdown";
|
||||
keybind = "s";
|
||||
}
|
||||
{
|
||||
label = "logout";
|
||||
action = "swaymsg exit";
|
||||
text = "Logout";
|
||||
keybind = "l";
|
||||
}
|
||||
];
|
||||
style = with scheme.withHashtag; let
|
||||
accent = scheme.withHashtag.${accentColour};
|
||||
shutdownIcon = ./icons/shutdown.png;
|
||||
rebootIcon = ./icons/reboot.png;
|
||||
logoutIcon = ./icons/logout.png;
|
||||
in ''
|
||||
* {
|
||||
font-size: ${toString fonts.sizes.popups}px;
|
||||
font-family: "${fonts.sansSerif.name}";
|
||||
}
|
||||
|
||||
window {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
button {
|
||||
border: ${accent};
|
||||
background-color: ${base00};
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 25%;
|
||||
box-shadow: none;
|
||||
margin: 5px;
|
||||
color: ${base05};
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: ${base01};
|
||||
color: ${base05};
|
||||
}
|
||||
|
||||
button:focus {
|
||||
background-color: ${base03};
|
||||
color: ${base05};
|
||||
}
|
||||
|
||||
#shutdown {
|
||||
background-image: url("${shutdownIcon}");
|
||||
}
|
||||
|
||||
#reboot {
|
||||
background-image: url("${rebootIcon}");
|
||||
}
|
||||
|
||||
#logout {
|
||||
background-image: url("${logoutIcon}");
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 18 KiB |
Binary file not shown.
Before Width: | Height: | Size: 7.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 16 KiB |
Binary file not shown.
Before Width: | Height: | Size: 15 KiB |
Binary file not shown.
Before Width: | Height: | Size: 17 KiB |
|
@ -1,4 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
# TODO add colour scheme and emacs keybinds
|
||||
programs.zathura = {enable = true;};
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
{...}: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
enableAutosuggestions = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
enableVteIntegration = true;
|
||||
autocd = true;
|
||||
historySubstringSearch.enable = true;
|
||||
history = {
|
||||
extended = true;
|
||||
ignoreDups = true;
|
||||
ignoreSpace = true;
|
||||
};
|
||||
shellAliases = {
|
||||
nixos-repl = "nixos-rebuild repl";
|
||||
nixos-test = "sudo nixos-rebuild test";
|
||||
nixos-boot = "sudo nixos-rebuild boot";
|
||||
nixos-switch = "sudo nixos-rebuild switch";
|
||||
nixos-reboot = "sudo nixos-rebuild boot && sudo reboot now";
|
||||
nixos-shutdown = "sudo nixos-rebuild boot && sudo shutdown now";
|
||||
gsa = "git-sync-all";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = ["colored-man-pages" "lol" "rand-quote"];
|
||||
theme = "";
|
||||
};
|
||||
completionInit = ''
|
||||
autoload -Uz +X compinit && compinit
|
||||
|
||||
## case insensitive path-completion
|
||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||
zstyle ':completion:*' menu select
|
||||
'';
|
||||
initExtra = "source ${./transient.zsh}\n";
|
||||
};
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
users.mutableUsers = false;
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
flake = "git+${config.nix.registry.nixos.to.url}";
|
||||
flags = ["-L"]; # Print build logs
|
||||
dates = "02:00";
|
||||
randomizedDelaySec = "15min";
|
||||
allowReboot = true;
|
||||
rebootWindow = {
|
||||
lower = "02:00";
|
||||
upper = "05:00";
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [nil];
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
{}
|
|
@ -1,13 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
|
||||
boot.extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
'';
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
hardware.opengl.extraPackages = with pkgs; [amdvlk rocmPackages.clr.icd];
|
||||
hardware.opengl.extraPackages32 = [pkgs.driversi686Linux.amdvlk];
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{...}: {
|
||||
wayland.windowManager.sway.config.output = {
|
||||
"eDP-1" = {
|
||||
scale = "1.25";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
# Setup keyfile
|
||||
boot.initrd.secrets = {"/crypto_keyfile.bin" = null;};
|
||||
|
||||
# Enable swap on luks
|
||||
boot.initrd.luks.devices."luks-761eeb11-3091-4142-9232-4fb33165eccd".device = "/dev/disk/by-uuid/761eeb11-3091-4142-9232-4fb33165eccd";
|
||||
boot.initrd.luks.devices."luks-761eeb11-3091-4142-9232-4fb33165eccd".keyFile = "/crypto_keyfile.bin";
|
||||
|
||||
environment = {
|
||||
etc."ppp/options".text = ''
|
||||
ipcp-accept-remote
|
||||
'';
|
||||
systemPackages = with pkgs; [openfortivpn samba];
|
||||
};
|
||||
services.ollama.enable = true;
|
||||
}
|
|
@ -1,46 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.packages = [(pkgs.writeShellScriptBin "ukaea-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}")];
|
||||
programs.git.userEmail = config.accounts.email.accounts.outlook.address;
|
||||
accounts.email.accounts = {
|
||||
proton.primary = lib.mkForce false;
|
||||
outlook.primary = lib.mkForce true;
|
||||
};
|
||||
wayland.windowManager.sway.config.output = {
|
||||
"eDP-1".scale = "1.25";
|
||||
"Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5";
|
||||
};
|
||||
xresources.properties."Xft.dpi" = toString (builtins.mul 96 1.5);
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
systemdTarget = "sway-session.target";
|
||||
profiles = {
|
||||
undocked = {
|
||||
outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
status = "enable";
|
||||
scale = 1.25;
|
||||
}
|
||||
];
|
||||
};
|
||||
docked = {
|
||||
outputs = [
|
||||
{
|
||||
criteria = "Dell Inc. DELL P3223QE CCG8YN3";
|
||||
status = "enable";
|
||||
scale = 1.5;
|
||||
}
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
status = "disable";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
||||
|
||||
# Setup keyfile
|
||||
boot.initrd.secrets = {"/crypto_keyfile.bin" = null;};
|
||||
|
||||
# Enable swap on luks
|
||||
boot.initrd.luks.devices."luks-47d34268-5100-4eba-b34d-220f4239c1cb".device = "/dev/disk/by-uuid/47d34268-5100-4eba-b34d-220f4239c1cb";
|
||||
boot.initrd.luks.devices."luks-47d34268-5100-4eba-b34d-220f4239c1cb".keyFile = "/crypto_keyfile.bin";
|
||||
|
||||
environment = {
|
||||
etc."ppp/options".text = ''
|
||||
ipcp-accept-remote
|
||||
'';
|
||||
systemPackages = with pkgs; [openfortivpn samba];
|
||||
};
|
||||
services.ollama.enable = true;
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
programs.git.userEmail = config.accounts.email.accounts.outlook.address;
|
||||
accounts.email.accounts = {
|
||||
proton.primary = lib.mkForce false;
|
||||
outlook.primary = lib.mkForce true;
|
||||
};
|
||||
wayland.windowManager.sway.config.output = {
|
||||
"Dell Inc. DELL P3223QE CCG8YN3" = {
|
||||
pos = "0 0";
|
||||
scale = "1.5";
|
||||
};
|
||||
};
|
||||
xresources.properties."Xft.dpi" = toString (builtins.mul 96 1.5);
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{config, ...}: {
|
||||
boot = {
|
||||
initrd.kernelModules = ["amdgpu"];
|
||||
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
|
||||
extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
'';
|
||||
};
|
||||
hardware.opengl = {
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
services.ollama.enable = true;
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
wayland.windowManager.sway.config = {
|
||||
startup = [
|
||||
{command = "${pkgs.xorg.xrandr}/bin/xrandr --output DP-2 --primary";}
|
||||
];
|
||||
output = {
|
||||
"Acer Technologies ED270R TJMEE0043W01" = {
|
||||
mode = "1920x1080@165Hz";
|
||||
pos = "1080 420";
|
||||
adaptive_sync = "off";
|
||||
};
|
||||
"Ancor Communications Inc VS278 FALMQS032358" = {
|
||||
pos = "0 0";
|
||||
transform = "270";
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.waybar.settings = {
|
||||
main.output = ["DP-2"];
|
||||
alt.output = ["HDMI-A-1"];
|
||||
};
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
system: "base16"
|
||||
name: "Modus Vivendi Tinted"
|
||||
author: "https://protesilaos.com/emacs/modus-themes"
|
||||
variant: "dark"
|
||||
base00: "0d0e1c"
|
||||
base01: "2b3045"
|
||||
base02: "4a4f69"
|
||||
base03: "61647a"
|
||||
base04: "c6daff"
|
||||
base05: "ffffff"
|
||||
base06: "ffffff"
|
||||
base07: "ffffff"
|
||||
base08: "ff5f59" # red (err / red-warmer)
|
||||
base09: "ff9f80" # orange (comment / red-faint)
|
||||
base0A: "fec43f" # yellow (warning / yellow-warmer)
|
||||
base0B: "00c06f" # green (rx-construct / green-cooler)
|
||||
base0C: "00d3d0" # cyan (variable / cyan)
|
||||
base0D: "79a8ff" # blue (string / blue-warmer)
|
||||
base0E: "f78fe7" # magenta (cursor / magenta-warmer)
|
||||
base0F: "d2b580" # brown (identifier / yellow-faint)
|
|
@ -1,20 +0,0 @@
|
|||
system: "base16"
|
||||
name: "Modus Vivendi"
|
||||
author: "https://protesilaos.com/emacs/modus-themes"
|
||||
variant: "dark"
|
||||
base00: "000000"
|
||||
base01: "303030"
|
||||
base02: "535353"
|
||||
base03: "646464"
|
||||
base04: "c6daff"
|
||||
base05: "ffffff"
|
||||
base06: "ffffff"
|
||||
base07: "ffffff"
|
||||
base08: "ff5f59" # red (err / red-warmer)
|
||||
base09: "ff9f80" # orange (comment / red-faint)
|
||||
base0A: "fec43f" # yellow (warning / yellow-warmer)
|
||||
base0B: "00c06f" # green (rx-construct / green-cooler)
|
||||
base0C: "00d3d0" # cyan (variable / cyan)
|
||||
base0D: "79a8ff" # blue (string / blue-warmer)
|
||||
base0E: "f78fe7" # magenta (cursor / magenta-warmer)
|
||||
base0F: "d2b580" # brown (identifier / yellow-faint)
|
|
@ -1,5 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [steamcmd];
|
||||
networking.firewall.allowedTCPPorts = [8777];
|
||||
services.caddy.virtualHosts."astro.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:8777";
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
{...}: {
|
||||
networking.firewall.allowedTCPPorts = [80 443];
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
email = "evie@xenia.me.uk";
|
||||
virtualHosts = {
|
||||
"xenia.me.uk".extraConfig = ''
|
||||
redir https://www.xenia.me.uk
|
||||
'';
|
||||
"www.xenia.me.uk".extraConfig = ''
|
||||
file_server * {
|
||||
root /var/www/xenia.me.uk/
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
ignoreIP = ["127.0.0.1/8" "::1" "192.168.1.0/16"];
|
||||
bantime-increment = {enable = true;};
|
||||
};
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
{...}: {
|
||||
imports = [./caddy.nix];
|
||||
services = {
|
||||
forgejo = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
ROOT_URL = "https://git.xenia.me.uk";
|
||||
DOMAIN = "git.xenia.me.uk";
|
||||
HTTP_ADDR = "127.0.0.1";
|
||||
HTTP_PORT = 3100;
|
||||
DISABLE_SSH = true;
|
||||
};
|
||||
ui = {DEFAULT_THEME = "forgejo-auto";};
|
||||
admin = {DISABLE_REGULAR_ORG_CREATION = true;};
|
||||
service = {DISABLE_REGISTRATION = true;};
|
||||
};
|
||||
};
|
||||
caddy.virtualHosts."git.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:3100";
|
||||
};
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
{...}: {
|
||||
imports = [./caddy.nix];
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
ROOT_URL = "https://git.xenia.me.uk";
|
||||
DOMAIN = "git.xenia.me.uk";
|
||||
HTTP_ADDR = "127.0.0.1";
|
||||
HTTP_PORT = 3100;
|
||||
DISABLE_SSH = true;
|
||||
};
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
ui = {
|
||||
DEFAULT_THEME = "auto";
|
||||
THEMES = "auto,gitea,arc-greenw,catppuccin-latte-rosewater,catppuccin-latte-flamingo,catppuccin-latte-pink,catppuccin-latte-mauve,catppuccin-latte-red,catppuccin-latte-maroon,catppuccin-latte-peach,catppuccin-latte-yellow,catppuccin-latte-green,catppuccin-latte-teal,catppuccin-latte-sky,catppuccin-latte-sapphire,catppuccin-latte-blue,catppuccin-latte-lavender,catppuccin-frappe-rosewater,catppuccin-frappe-flamingo,catppuccin-frappe-pink,catppuccin-frappe-mauve,catppuccin-frappe-red,catppuccin-frappe-maroon,catppuccin-frappe-peach,catppuccin-frappe-yellow,catppuccin-frappe-green,catppuccin-frappe-teal,catppuccin-frappe-sky,catppuccin-frappe-sapphire,catppuccin-frappe-blue,catppuccin-frappe-lavender,catppuccin-macchiato-rosewater,catppuccin-macchiato-flamingo,catppuccin-macchiato-pink,catppuccin-macchiato-mauve,catppuccin-macchiato-red,catppuccin-macchiato-maroon,catppuccin-macchiato-peach,catppuccin-macchiato-yellow,catppuccin-macchiato-green,catppuccin-macchiato-teal,catppuccin-macchiato-sky,catppuccin-macchiato-sapphire,catppuccin-macchiato-blue,catppuccin-macchiato-lavender,catppuccin-mocha-rosewater,catppuccin-mocha-flamingo,catppuccin-mocha-pink,catppuccin-mocha-mauve,catppuccin-mocha-red,catppuccin-mocha-maroon,catppuccin-mocha-peach,catppuccin-mocha-yellow,catppuccin-mocha-green,catppuccin-mocha-teal,catppuccin-mocha-sky,catppuccin-mocha-sapphire,catppuccin-mocha-blue,catppuccin-mocha-lavender";
|
||||
};
|
||||
};
|
||||
appName = "Gitea";
|
||||
};
|
||||
services.caddy.virtualHosts."git.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:3100";
|
||||
}
|
|
@ -1,44 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [./caddy.nix];
|
||||
services.postgresql.enable = true;
|
||||
services.postgresql.initialScript = pkgs.writeText "synapse-init.sql" ''
|
||||
CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse';
|
||||
CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse"
|
||||
TEMPLATE template0
|
||||
LC_COLLATE = "C"
|
||||
LC_CTYPE = "C";
|
||||
'';
|
||||
|
||||
services = {
|
||||
matrix-synapse = {
|
||||
enable = true;
|
||||
settings.server_name = "xenia.me.uk";
|
||||
settings.listeners = [
|
||||
{
|
||||
bind_addresses = ["127.0.0.1"];
|
||||
port = 8008;
|
||||
type = "http";
|
||||
tls = false;
|
||||
x_forwarded = true;
|
||||
resources = [
|
||||
{
|
||||
names = ["client" "federation"];
|
||||
compress = true;
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
extraConfigFiles = ["/run/secrets/matrix-shared-secret"];
|
||||
};
|
||||
caddy.virtualHosts."xenia.me.uk".extraConfig = ''
|
||||
header /.well-known/matrix/* Content-Type application/json
|
||||
header /.well-known/matrix/* Access-Control-Allow-Origin *
|
||||
respond /.well-known/matrix/server `{"m.server": "matrix.xenia.me.uk:443"}`
|
||||
respond /.well-known/matrix/client `{"m.homeserver":{"base_url":"https://matrix.xenia.me.uk"}}`
|
||||
'';
|
||||
caddy.virtualHosts."matrix.xenia.me.uk".extraConfig = ''
|
||||
reverse_proxy /_matrix/* localhost:8008
|
||||
reverse_proxy /_synapse/client/* localhost:8008
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
{config, ...}: {
|
||||
services.minecraft-server = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
openFirewall = true;
|
||||
declarative = true;
|
||||
whitelist = {
|
||||
"pixelifytica" = "b1848d60-4ddd-4fa4-a328-fb269910b6ae";
|
||||
"HomeInTheClouds" = "d49f0aee-f217-477b-9516-9d5906f7fc87";
|
||||
};
|
||||
serverProperties = {
|
||||
server-port = 25565;
|
||||
difficulty = "easy";
|
||||
gamemode = "survival";
|
||||
force-gamemode = true;
|
||||
max-players = 10;
|
||||
# level-seed = 238902389203;
|
||||
motd = "NixOS Minecraft server!";
|
||||
white-list = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Caddy forwarding
|
||||
services.caddy.virtualHosts."craft.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${toString config.services.minecraft-server.serverProperties.server-port}";
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
{...}: let
|
||||
port = "5232";
|
||||
in {
|
||||
services.radicale = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
hosts = ["0.0.0.0:${port}"];
|
||||
};
|
||||
auth = {
|
||||
type = "htpasswd";
|
||||
htpasswd_filename = "/etc/radicale/users";
|
||||
delay = 1;
|
||||
};
|
||||
};
|
||||
# rights = {};
|
||||
};
|
||||
services.caddy.virtualHosts."cal.xenia.me.uk".extraConfig = ''
|
||||
reverse_proxy http://localhost:${port}
|
||||
'';
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
{...}: let
|
||||
devices = ["Ion" "Legion" "Northstar" "Vanguard"];
|
||||
in {
|
||||
imports = [./caddy.nix];
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
systemService = true;
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
openDefaultPorts = true;
|
||||
settings = {
|
||||
devices = {
|
||||
"Ion".id = "7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";
|
||||
"Legion".id = "XIJ4CPX-3USDOFM-JLKWEPP-J7MEVKX-LJ6HCCS-YZNHGGC-GDSMZPD-TTVYNAZ";
|
||||
"Northstar".id = "MXF5AXH-AOOVOSC-OYZP7O3-L4SN3RI-BWX3J4X-YJDY5GS-3TM7SPF-MDORAAW";
|
||||
"Vanguard".id = "YELFAIP-4VBWPRX-CB7RNJD-RPBQ6KN-CGTMIBO-FK7EPTH-ZXYS6AF-C6WKOQT";
|
||||
};
|
||||
folders = {
|
||||
"Music" = {
|
||||
inherit devices;
|
||||
id = "munzw-vnxhl";
|
||||
path = "~/Music";
|
||||
ignorePerms = true;
|
||||
};
|
||||
"Pictures" = {
|
||||
inherit devices;
|
||||
id = "ziuj8-rm6dn";
|
||||
path = "~/Pictures";
|
||||
ignorePerms = true;
|
||||
};
|
||||
"Videos" = {
|
||||
inherit devices;
|
||||
id = "mbsop-qteua";
|
||||
path = "~/Videos";
|
||||
ignorePerms = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
{...}: {
|
||||
specialisation.home = {};
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
{...}: {
|
||||
specialisation.server = {};
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
{...}: {
|
||||
specialisation.work = {};
|
||||
}
|
26
system/Legion.nix
Normal file
26
system/Legion.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ username, ... }:
|
||||
{
|
||||
imports = [
|
||||
./services/adguardhome.nix
|
||||
./services/caddy.nix
|
||||
./services/forgejo.nix
|
||||
./services/grafana.nix
|
||||
./services/home-assistant.nix
|
||||
./services/minecraft.nix
|
||||
./services/nix-serve.nix
|
||||
./services/satisfactory/default.nix
|
||||
./services/sshd.nix
|
||||
./services/syncthing.nix
|
||||
./services/xandikos.nix
|
||||
];
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
home-manager.users.${username} = {
|
||||
home.stateVersion = "23.05";
|
||||
};
|
||||
system.stateVersion = "23.05";
|
||||
users.mutableUsers = false;
|
||||
hardware.bluetooth.enable = true;
|
||||
}
|
9
system/Northstar.nix
Normal file
9
system/Northstar.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ username, ... }:
|
||||
{
|
||||
imports = [ ./laptop.nix ];
|
||||
home-manager.users.${username} = {
|
||||
home.stateVersion = "23.05";
|
||||
wayland.windowManager.hyprland.settings.monitor = [ "eDP-1,preferred,auto,1.25" ];
|
||||
};
|
||||
system.stateVersion = "23.05";
|
||||
}
|
31
system/Ronin.nix
Normal file
31
system/Ronin.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ pkgs, username, ... }:
|
||||
{
|
||||
imports = [
|
||||
./laptop.nix
|
||||
./work.nix
|
||||
];
|
||||
home-manager.users.${username} = {
|
||||
home.stateVersion = "23.05";
|
||||
wayland.windowManager.hyprland.settings.monitor = [
|
||||
"eDP-1,preferred,auto,1.25"
|
||||
"desc:Dell Inc. DELL P3223QE CCG8YN3,preferred,auto-left,1.5"
|
||||
];
|
||||
};
|
||||
boot.initrd = {
|
||||
secrets = {
|
||||
"/crypto_keyfile.bin" = null;
|
||||
};
|
||||
luks.devices."luks-761eeb11-3091-4142-9232-4fb33165eccd" = {
|
||||
device = "/dev/disk/by-uuid/761eeb11-3091-4142-9232-4fb33165eccd";
|
||||
keyFile = "/crypto_keyfile.bin";
|
||||
};
|
||||
};
|
||||
system.stateVersion = "23.05";
|
||||
environment = {
|
||||
etc."ppp/options".text = ''
|
||||
ipcp-accept-remote
|
||||
'';
|
||||
systemPackages = with pkgs; [ openfortivpn ];
|
||||
};
|
||||
services.hardware.bolt.enable = true;
|
||||
}
|
36
system/Tone.nix
Normal file
36
system/Tone.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ pkgs, username, ... }:
|
||||
{
|
||||
imports = [
|
||||
./desktop.nix
|
||||
./work.nix
|
||||
];
|
||||
home-manager.users.${username} = {
|
||||
home.stateVersion = "23.05";
|
||||
wayland.windowManager.hyprland.settings.monitor = [
|
||||
"desc:Dell Inc. DELL P3223QE CCG8YN3,preferred,auto,1.5"
|
||||
];
|
||||
};
|
||||
boot = {
|
||||
loader.efi.efiSysMountPoint = "/boot/efi";
|
||||
initrd = {
|
||||
secrets = {
|
||||
"/crypto_keyfile.bin" = null;
|
||||
};
|
||||
luks.devices."luks-47d34268-5100-4eba-b34d-220f4239c1cb" = {
|
||||
device = "/dev/disk/by-uuid/47d34268-5100-4eba-b34d-220f4239c1cb";
|
||||
keyFile = "/crypto_keyfile.bin";
|
||||
};
|
||||
};
|
||||
};
|
||||
system.stateVersion = "23.05";
|
||||
environment = {
|
||||
etc."ppp/options".text = ''
|
||||
ipcp-accept-remote
|
||||
'';
|
||||
systemPackages = with pkgs; [
|
||||
openfortivpn
|
||||
samba
|
||||
];
|
||||
};
|
||||
services.ollama.enable = true;
|
||||
}
|
65
system/Vanguard.nix
Normal file
65
system/Vanguard.nix
Normal file
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./desktop.nix
|
||||
./steam.nix
|
||||
];
|
||||
home-manager.users.${username} = {
|
||||
home = {
|
||||
stateVersion = "23.05";
|
||||
packages = with pkgs; [
|
||||
helvum
|
||||
prusa-slicer
|
||||
blender
|
||||
freecad
|
||||
openscad
|
||||
kicad-small
|
||||
wineWowPackages.waylandFull
|
||||
winetricks
|
||||
lutris
|
||||
cartridges
|
||||
prismlauncher
|
||||
];
|
||||
};
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
wlrobs
|
||||
obs-vkcapture
|
||||
obs-pipewire-audio-capture
|
||||
input-overlay
|
||||
];
|
||||
};
|
||||
wayland.windowManager.hyprland.settings.monitor = [
|
||||
"desc:Acer Technologies ED270R TJMEE0043W01,1920x1080@144,0x140,1.0,vrr,2"
|
||||
"desc:Microstep MSI G27CQ4 E2,2560x1440@144,1920x0,1.25,vrr,2"
|
||||
];
|
||||
};
|
||||
boot = {
|
||||
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||
extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
'';
|
||||
};
|
||||
hardware = {
|
||||
amdgpu = {
|
||||
initrd.enable = true;
|
||||
opencl.enable = true;
|
||||
};
|
||||
opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
};
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration = "rocm";
|
||||
};
|
||||
system.stateVersion = "23.05";
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = [pkgs.chromium];
|
||||
programs.chromium = rec {
|
||||
enable = true;
|
||||
defaultSearchProviderEnabled = true;
|
||||
defaultSearchProviderSearchURL = "https://duckduckgo.com/?q={searchTerms}";
|
||||
defaultSearchProviderSuggestURL = defaultSearchProviderSearchURL;
|
||||
extensions = [
|
||||
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
|
||||
"dphilobhebphkdjbpfohgikllaljmgbn" # simplelogin
|
||||
];
|
||||
extraOpts = {
|
||||
"AllowDinosaurEasterEgg" = true;
|
||||
"AllowSystemNotifications" = true;
|
||||
"AutoFillEnabled" = false;
|
||||
"BookmarkBarEnabled" = false;
|
||||
"BrowserLabsEnabled" = false;
|
||||
"BrowserSignin" = 0;
|
||||
"ClearBrowsingDataOnExitList" = [
|
||||
"browsing_history"
|
||||
"download_history"
|
||||
"cached_images_and_files"
|
||||
"password_signin"
|
||||
"autofill"
|
||||
];
|
||||
"DefaultBrowserSettingEnabled" = false;
|
||||
"DeviceAutoUpdateDisabled" = true;
|
||||
"HomepageIsNewTabPage" = false;
|
||||
"PasswordManagerEnabled" = false;
|
||||
"RestoreOnStartup" = 5;
|
||||
"ShoppingListEnabled" = false;
|
||||
"ShowHomeButton" = false;
|
||||
"SpellcheckEnabled" = true;
|
||||
"SpellcheckLanguage" = ["en-GB"];
|
||||
"SpellCheckServiceEnabled" = false;
|
||||
"SyncDisabled" = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,17 +1,136 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
fonts,
|
||||
inputs,
|
||||
username,
|
||||
hostName,
|
||||
...
|
||||
}: {
|
||||
imports = [./registry.nix];
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.stylix.nixosModules.stylix
|
||||
./${hostName}.nix
|
||||
./hardware-configuration/${hostName}.nix
|
||||
];
|
||||
nix = {
|
||||
enable = true;
|
||||
package = pkgs.nixVersions.latest;
|
||||
settings = {
|
||||
cores = 0;
|
||||
max-jobs = "auto";
|
||||
trusted-users = [
|
||||
"root"
|
||||
username
|
||||
];
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
auto-optimise-store = true;
|
||||
substituters = [ "https://nix.xenia.me.uk" ];
|
||||
trusted-public-keys = [ "nix.xenia.me.uk:tlgwOaG5KMLjQUk2YaErS8mAG69ZCr3PaHXZYi+Y5eI=" ];
|
||||
};
|
||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||
channel.enable = true;
|
||||
gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
optimise.automatic = true;
|
||||
registry.my-nixos = {
|
||||
from = {
|
||||
type = "indirect";
|
||||
id = "my-nixos";
|
||||
};
|
||||
to = {
|
||||
type = "git";
|
||||
url = "https://git.xenia.me.uk/pixelifytica/nixos.git?ref=main";
|
||||
};
|
||||
};
|
||||
extraOptions = ''
|
||||
keep-outputs = false
|
||||
keep-derivations = false
|
||||
min-free = ${toString (100 * 1024 * 1024)}
|
||||
max-free = ${toString (1024 * 1024 * 1024)}
|
||||
'';
|
||||
};
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
persistent = true;
|
||||
allowReboot = false;
|
||||
flake = "git+${config.nix.registry.my-nixos.to.url}";
|
||||
dates = "02:00";
|
||||
randomizedDelaySec = "5min";
|
||||
fixedRandomDelay = true;
|
||||
flags = [
|
||||
"--option"
|
||||
"extra-binary-caches"
|
||||
"https://nix.xenia.me.uk"
|
||||
];
|
||||
};
|
||||
systemd.services = lib.mkIf config.system.autoUpgrade.enable {
|
||||
nixos-upgrade.serviceConfig = {
|
||||
CPUQuota = "75%";
|
||||
CPUWeight = 20;
|
||||
IOWeight = 20;
|
||||
};
|
||||
};
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
networking = {
|
||||
inherit hostName;
|
||||
networkmanager.enable = true;
|
||||
firewall.enable = true;
|
||||
nameservers = ["9.9.9.9"];
|
||||
nameservers = [ "9.9.9.9" ];
|
||||
};
|
||||
users.users =
|
||||
let
|
||||
authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINI1dWlS16Keil0MGPWmMsBzx8F9ylfz+fRwxUr8/tZ/ ion"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC4M1zV3yLMMI1tYwdY9QDXJDlOBugm7UXKC+Xk89yHq pixelifytica@Vanguard"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICPypUUGVAdpl0SHrUDVw0RureuFNsljrXQvrf0uc055 pixelifytica@Northstar"
|
||||
];
|
||||
in
|
||||
{
|
||||
root.openssh = {
|
||||
inherit authorizedKeys;
|
||||
};
|
||||
${username} = {
|
||||
isNormalUser = true;
|
||||
group = "users";
|
||||
description = "Evie Litherland-Smith";
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"video"
|
||||
"input"
|
||||
"uinput"
|
||||
"dialout"
|
||||
];
|
||||
initialHashedPassword = "$y$j9T$tHIPQt09Kf3KH2eIRze3g/$2mwSlcq27DTGvHNPJ5EP9/1CfL3bXP0F6oS/Vuffmn3";
|
||||
openssh = {
|
||||
inherit authorizedKeys;
|
||||
};
|
||||
};
|
||||
};
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
backupFileExtension = "backup";
|
||||
users.${username} = {
|
||||
imports = [ ./home/default.nix ];
|
||||
home = {
|
||||
inherit username;
|
||||
homeDirectory = "/home/${username}";
|
||||
};
|
||||
};
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
};
|
||||
environment = {
|
||||
sessionVariables = {
|
||||
|
@ -21,30 +140,22 @@
|
|||
XDG_STATE_HOME = "$HOME/.local/state";
|
||||
};
|
||||
systemPackages = with pkgs; [
|
||||
coreutils
|
||||
libsecret
|
||||
coreutils-full
|
||||
gnumake
|
||||
git
|
||||
git-sync
|
||||
pinentry
|
||||
file
|
||||
zip
|
||||
unzip
|
||||
jq
|
||||
fd
|
||||
ripgrep
|
||||
rclone
|
||||
p7zip
|
||||
curl
|
||||
wget
|
||||
dig
|
||||
wireguard-tools
|
||||
dogdns
|
||||
du-dust
|
||||
ffmpeg
|
||||
nitch
|
||||
neofetch
|
||||
bottom
|
||||
nix-output-monitor
|
||||
quickemu
|
||||
distrobox
|
||||
];
|
||||
localBinInPath = true;
|
||||
};
|
||||
console.keyMap = "uk";
|
||||
programs = {
|
||||
command-not-found.enable = false;
|
||||
ssh.startAgent = true;
|
||||
|
@ -59,7 +170,6 @@
|
|||
};
|
||||
};
|
||||
services = {
|
||||
passSecretService.enable = true;
|
||||
upower.enable = true;
|
||||
power-profiles-daemon.enable = true;
|
||||
system76-scheduler = {
|
||||
|
@ -67,44 +177,52 @@
|
|||
useStockConfig = true;
|
||||
};
|
||||
};
|
||||
security.rtkit.enable = true;
|
||||
virtualisation.podman.enable = true;
|
||||
time.timeZone = "Europe/London";
|
||||
i18n = let
|
||||
locale = "en_GB.UTF-8";
|
||||
in {
|
||||
# Select internationalisation properties.
|
||||
defaultLocale = locale;
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = locale;
|
||||
LC_IDENTIFICATION = locale;
|
||||
LC_MEASUREMENT = locale;
|
||||
LC_MONETARY = locale;
|
||||
LC_NAME = locale;
|
||||
LC_NUMERIC = locale;
|
||||
LC_PAPER = locale;
|
||||
LC_TELEPHONE = locale;
|
||||
LC_TIME = locale;
|
||||
};
|
||||
location = {
|
||||
latitude = 51.7;
|
||||
longitude = -1.2;
|
||||
provider = "manual";
|
||||
};
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
fonts.serif.package
|
||||
fonts.sansSerif.package
|
||||
fonts.monospace.package
|
||||
fonts.emoji.package
|
||||
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];}) # Status bar
|
||||
emacs-all-the-icons-fonts # Emacs
|
||||
weather-icons # Emacs
|
||||
lmodern # LaTeX
|
||||
];
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
serif = [fonts.serif.name];
|
||||
sansSerif = [fonts.sansSerif.name];
|
||||
monospace = [fonts.monospace.name];
|
||||
emoji = [fonts.emoji.name];
|
||||
time.timeZone = "Europe/London";
|
||||
i18n.defaultLocale = "en_GB.UTF-8";
|
||||
console.useXkbConfig = true;
|
||||
stylix = {
|
||||
enable = true;
|
||||
image = ./home/desktop/wallpapers/tropic_island_day.jpg;
|
||||
base16Scheme = ./one-light.yaml; # Base24 scheme
|
||||
polarity = "light";
|
||||
opacity.popups = 0.8;
|
||||
cursor = {
|
||||
package = pkgs.volantes-cursors;
|
||||
name = "volantes_cursors";
|
||||
size = 32;
|
||||
};
|
||||
fonts = {
|
||||
serif = {
|
||||
package = inputs.iosevka-custom.outputs.packages.${pkgs.system}.iosevka-custom-etoile;
|
||||
name = inputs.iosevka-custom.outputs.names.iosevka-custom-etoile;
|
||||
};
|
||||
sansSerif = {
|
||||
package = inputs.iosevka-custom.outputs.packages.${pkgs.system}.iosevka-custom-aile;
|
||||
name = inputs.iosevka-custom.outputs.names.iosevka-custom-aile;
|
||||
};
|
||||
monospace = {
|
||||
package = pkgs.nerdfonts.override { fonts = [ "Iosevka" ]; };
|
||||
name = "Iosevka Nerd Font";
|
||||
};
|
||||
sizes = {
|
||||
applications = 12;
|
||||
desktop = 14;
|
||||
popups = 16;
|
||||
terminal = 12;
|
||||
};
|
||||
};
|
||||
};
|
||||
fonts.packages = with pkgs; [
|
||||
dejavu_fonts # General compatibility
|
||||
liberation_ttf # Documents
|
||||
lmodern # LaTeX
|
||||
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,188 +1,99 @@
|
|||
{ pkgs, username, ... }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
user,
|
||||
...
|
||||
}: {
|
||||
imports = [./default.nix ./firefox.nix];
|
||||
nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
|
||||
home-manager.users.${username}.imports = [ ./home/desktop/default.nix ];
|
||||
nixpkgs.config.chromium.commandLineArgs = "--password-store='gnome-libsecret' --enable-features=UseOzonePlatform --ozone-platform=wayland";
|
||||
hardware.bluetooth.enable = true;
|
||||
environment = {
|
||||
sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
WEBKIT_DISABLE_COMPOSITING_MODE = "1";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
};
|
||||
systemPackages = with pkgs; [
|
||||
wtype
|
||||
wl-clipboard
|
||||
xdg-utils
|
||||
libsecret
|
||||
libnotify
|
||||
libcamera
|
||||
glib
|
||||
gsettings-desktop-schemas
|
||||
xdg-utils
|
||||
hunspell
|
||||
hunspellDicts.en_GB-large
|
||||
swaybg
|
||||
swayimg
|
||||
swaylock-effects
|
||||
pamixer
|
||||
pavucontrol
|
||||
playerctl
|
||||
brightnessctl
|
||||
mpv
|
||||
xarchiver
|
||||
libreoffice-fresh
|
||||
zathura
|
||||
inkscape
|
||||
signal-desktop
|
||||
nomachine-client
|
||||
gnome.nautilus
|
||||
];
|
||||
};
|
||||
security = {
|
||||
polkit.enable = true;
|
||||
rtkit.enable = true;
|
||||
pam = {
|
||||
services.swaylock = {};
|
||||
loginLimits = [
|
||||
{
|
||||
domain = "@users";
|
||||
item = "rtprio";
|
||||
type = "-";
|
||||
value = 1;
|
||||
}
|
||||
];
|
||||
};
|
||||
pam.loginLimits = [
|
||||
{
|
||||
domain = "@users";
|
||||
item = "rtprio";
|
||||
type = "-";
|
||||
value = 1;
|
||||
}
|
||||
];
|
||||
};
|
||||
sound.enable = false;
|
||||
hardware.bluetooth.enable = true;
|
||||
programs = {
|
||||
dconf.enable = true;
|
||||
light.enable = true;
|
||||
noisetorch.enable = true;
|
||||
thunar = {
|
||||
enable = true;
|
||||
plugins = with pkgs.xfce; [thunar-archive-plugin thunar-volman];
|
||||
};
|
||||
seahorse.enable = true;
|
||||
file-roller.enable = true;
|
||||
kdeconnect.enable = true;
|
||||
hyprland.enable = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
gtk.iconCache.enable = true;
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme = "gtk2";
|
||||
style = "gtk2";
|
||||
style = "adwaita";
|
||||
platformTheme = "gnome";
|
||||
};
|
||||
services = {
|
||||
gnome.gnome-keyring.enable = true;
|
||||
flatpak.enable = true;
|
||||
blueman.enable = true;
|
||||
printing.enable = true;
|
||||
tumbler.enable = true;
|
||||
udisks2.enable = true;
|
||||
gnome.sushi.enable = true;
|
||||
gvfs = {
|
||||
enable = true;
|
||||
package = lib.mkForce pkgs.gnome3.gvfs;
|
||||
package = pkgs.gnome3.gvfs;
|
||||
};
|
||||
accounts-daemon.enable = true;
|
||||
dbus.packages = with pkgs; [gcr];
|
||||
greetd = {
|
||||
kanata = {
|
||||
enable = true;
|
||||
settings.initial_session = {inherit user;};
|
||||
keyboards.main = {
|
||||
config = builtins.readFile ./kanata.kbd;
|
||||
extraDefCfg = "process-unmapped-keys yes";
|
||||
};
|
||||
};
|
||||
pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
audio.enable = true;
|
||||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
};
|
||||
tumbler.enable = true;
|
||||
udisks2.enable = true;
|
||||
greetd = {
|
||||
enable = true;
|
||||
settings =
|
||||
let
|
||||
default_session.command = "Hyprland";
|
||||
in
|
||||
{
|
||||
inherit default_session;
|
||||
initial_session = {
|
||||
inherit (default_session) command;
|
||||
user = username;
|
||||
};
|
||||
};
|
||||
};
|
||||
xserver = {
|
||||
enable = false;
|
||||
xkb = {
|
||||
layout = "gb";
|
||||
variant = "";
|
||||
options = "ctrl:nocaps";
|
||||
};
|
||||
enable = true;
|
||||
xkb.layout = "gb";
|
||||
};
|
||||
};
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = true;
|
||||
config.common.default = "*"; # TODO change for xdg-desktop-portal > 1.17 changes
|
||||
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
||||
};
|
||||
mime = let
|
||||
emacs = ["emacsclient.desktop" "emacs.desktop"];
|
||||
browser = ["firefox.desktop" "nyxt.desktop"];
|
||||
applications = {
|
||||
"inode/directory" = ["thunar.desktop"];
|
||||
"inode/symlink" = ["thunar.desktop"];
|
||||
|
||||
"image/jpeg" = ["swayimg.desktop"];
|
||||
"image/png" = ["swayimg.desktop"];
|
||||
"video/mp4" = ["mpv.desktop"];
|
||||
|
||||
"text/plain" = emacs;
|
||||
"text/richtext" = emacs;
|
||||
"text/org" = emacs;
|
||||
"text/markdown" = emacs;
|
||||
"text/rust" = emacs;
|
||||
"text/csv" = emacs;
|
||||
"text/html" = emacs;
|
||||
"text/css" = emacs;
|
||||
"text/tab-separated-values" = emacs;
|
||||
|
||||
"text/x-emacs-lisp" = emacs;
|
||||
"text/x-fortran" = emacs;
|
||||
"text/x-idl" = emacs;
|
||||
"text/x-log" = emacs;
|
||||
"text/x-lua" = emacs;
|
||||
"text/x-makefile" = emacs;
|
||||
"text/x-python" = emacs;
|
||||
"text/x-python3" = emacs;
|
||||
"text/x-readme" = emacs;
|
||||
"text/x-scheme" = emacs;
|
||||
"text/x-tex" = emacs;
|
||||
"text/x-texinfo" = emacs;
|
||||
|
||||
"application/json" = emacs;
|
||||
"application/toml" = emacs;
|
||||
"application/yaml" = emacs;
|
||||
"application/xml" = emacs;
|
||||
"application/rss+xml" = emacs;
|
||||
"application/xhtml+xml" = emacs;
|
||||
"application/oxps" = emacs;
|
||||
"application/x-shellscript" = emacs;
|
||||
|
||||
"application/pdf" = ["org.pwmt.zathura.desktop"];
|
||||
"application/epub+zip" = ["org.pwmt.zathura.desktop"];
|
||||
"application/msword" = ["writer.desktop"];
|
||||
"application/zip" = ["xarchiver.desktop"];
|
||||
|
||||
"application/x-extension-htm" = browser;
|
||||
"application/x-extension-html" = browser;
|
||||
"application/x-extension-shtml" = browser;
|
||||
"application/x-extension-xhtml" = browser;
|
||||
"application/x-extension-xht" = browser;
|
||||
"application/x-mozilla-bookmarks" = browser;
|
||||
|
||||
"x-scheme-handler/http" = browser;
|
||||
"x-scheme-handler/https" = browser;
|
||||
"x-scheme-handler/about" = browser;
|
||||
"x-scheme-handler/chrome" = browser;
|
||||
"x-scheme-handler/webcal" = browser;
|
||||
"x-scheme-handler/unknown" = emacs;
|
||||
|
||||
"x-scheme-handler/ms-word" = ["writer.desktop"];
|
||||
"x-scheme-handler/ms-powerpoint" = ["impress.desktop"];
|
||||
"x-scheme-handler/ms-excel" = ["calc.desktop"];
|
||||
"x-scheme-handler/msteams" = ["teams-for-linux.desktop"];
|
||||
};
|
||||
in {
|
||||
enable = true;
|
||||
defaultApplications = applications;
|
||||
addedAssociations = applications;
|
||||
removedAssociations = {"x-scheme-handler/zoomus" = browser;};
|
||||
};
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
config.common.default = "*"; # TODO change for xdg-desktop-portal > 1.17 changes
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,128 +0,0 @@
|
|||
{...}: {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
languagePacks = ["en-GB"];
|
||||
policies = {
|
||||
BlockAboutProfiles = true;
|
||||
Containers = {
|
||||
Default = [
|
||||
{
|
||||
name = "Personal";
|
||||
icon = "fingerprint";
|
||||
color = "purple";
|
||||
}
|
||||
{
|
||||
name = "Work";
|
||||
icon = "briefcase";
|
||||
color = "blue";
|
||||
}
|
||||
];
|
||||
};
|
||||
Cookies = {
|
||||
Behavior = "reject-tracker-and-partition-foreign";
|
||||
BehaviorPrivateBrowsing = "reject";
|
||||
Locked = true;
|
||||
};
|
||||
DefaultDownloadDirectory = "\${home}/Downloads";
|
||||
DisableAppUpdate = true;
|
||||
DisableFirefoxAccounts = true;
|
||||
DisableFirefoxScreenshots = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisableFormHistory = true;
|
||||
DisablePocket = true;
|
||||
DisableProfileImport = true;
|
||||
DisableSetDesktopBackground = true;
|
||||
DisableSystemAddonUpdate = true;
|
||||
DisableTelemetry = true;
|
||||
DisplayBookmarksToolbar = "never";
|
||||
DisplayMenuBar = "default-off";
|
||||
DontCheckDefaultBrowser = true;
|
||||
EnableTrackingProtection = {
|
||||
Value = true;
|
||||
Locked = true;
|
||||
Cryptomining = true;
|
||||
Fingerprinting = true;
|
||||
};
|
||||
ExtensionSettings = {
|
||||
"queryamoid@kaply.com" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi";
|
||||
};
|
||||
"uBlock0@raymondhill.net" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||
};
|
||||
"addon@simplelogin" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/simplelogin/latest.xpi";
|
||||
};
|
||||
"{8446b178-c865-4f5c-8ccc-1d7887811ae3}" = {
|
||||
installation_mode = "force_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/catppuccin-mocha-lavender-git/latest.xpi";
|
||||
};
|
||||
};
|
||||
FirefoxHome = {
|
||||
Search = true;
|
||||
TopSites = false;
|
||||
SponsoredTopSites = false;
|
||||
Highlights = false;
|
||||
Pocket = false;
|
||||
SponsoredPocket = false;
|
||||
Snippets = false;
|
||||
Locked = true;
|
||||
};
|
||||
FirefoxSuggest = {
|
||||
WebSuggestions = false;
|
||||
SponsoredSuggestions = false;
|
||||
ImproveSuggest = false;
|
||||
Locked = true;
|
||||
};
|
||||
HardwareAcceleration = true;
|
||||
Homepage = {
|
||||
Locked = true;
|
||||
StartPage = "homepage-locked";
|
||||
};
|
||||
NewTabPage = true;
|
||||
NoDefaultBookmarks = true;
|
||||
OfferToSaveLogins = false;
|
||||
PasswordManagerEnabled = false;
|
||||
PDFjs = {Enabled = false;};
|
||||
Permissions = {
|
||||
Autoplay = {
|
||||
Default = "block-audio-video";
|
||||
};
|
||||
};
|
||||
PictureInPicture = {Enabled = true;};
|
||||
PopupBlocking = {Default = true;};
|
||||
Preferences = {
|
||||
"browser.bookmarks.addedImportButton" = false;
|
||||
"browser.bookmarks.showMobileBookmarks" = false;
|
||||
"browser.newtabpage.pinned" = [
|
||||
{
|
||||
title = "NixOS Wiki";
|
||||
url = "https://wiki.nixos.org";
|
||||
}
|
||||
{
|
||||
title = "Arch Wiki";
|
||||
url = "https://wiki.archlinux.org";
|
||||
}
|
||||
{
|
||||
title = "Hyprland Wiki";
|
||||
url = "https://wiki.hyprland.org";
|
||||
}
|
||||
];
|
||||
"browser.search.region" = "GB";
|
||||
"browser.warnOnQuitShortcut" = false;
|
||||
"extensions.activeThemeID" = "{c6698fd1-fe9b-4eae-95d5-fe1703820469}";
|
||||
"intl.accept_languages" = "en-gb,en";
|
||||
"intl.locale.requested" = "en-gb,en";
|
||||
"intl.regional_prefs.use_os_locales" = false;
|
||||
"media.eme.enabled" = true;
|
||||
};
|
||||
RequestedLocales = ["en-GB"];
|
||||
SearchBar = "unified";
|
||||
ShowHomeButton = true;
|
||||
StartDownloadsInTempDirectory = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
prismlauncher
|
||||
(retroarch.override {
|
||||
cores = with libretro; [dolphin mgba mupen64plus];
|
||||
})
|
||||
];
|
||||
hardware.steam-hardware.enable = true;
|
||||
programs = {
|
||||
xwayland.enable = true;
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
};
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{...}: {
|
||||
imports = [./desktop.nix ./games.nix];
|
||||
services = {
|
||||
greetd.settings = let
|
||||
command = ''
|
||||
gamescope\
|
||||
--nested-refresh 60\
|
||||
--scaler auto --filter fsr --fsr-sharpness 10\
|
||||
--hide-cursor-delay 5 --steam -- steam -gamepadui
|
||||
'';
|
||||
in {
|
||||
default_session = {inherit command;};
|
||||
initial_session = {inherit command;};
|
||||
};
|
||||
};
|
||||
programs.steam.gamescopeSession.enable = true;
|
||||
}
|
|
@ -1,32 +1,44 @@
|
|||
# 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, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"nvme"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/b9d4ba04-a867-4ca6-88f9-79dc6a982e94";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/b9d4ba04-a867-4ca6-88f9-79dc6a982e94";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/8F05-4C3A";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/a10ee1da-3b0d-4f6b-b20a-d6a32ae1f668"; }
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/8F05-4C3A";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0022"
|
||||
"dmask=0022"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [ { device = "/dev/disk/by-uuid/a10ee1da-3b0d-4f6b-b20a-d6a32ae1f668"; } ];
|
||||
|
||||
# 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
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue