Compare commits
No commits in common. "6ca92c8537e39abe45c15bc4d62b38eb7046a52c" and "e3a1dd36d7b9edc403382b98122bca436b6cb9da" have entirely different histories.
6ca92c8537
...
e3a1dd36d7
92
flake.nix
@ -78,17 +78,6 @@
|
|||||||
lib = nixpkgs.lib.extend customLib;
|
lib = nixpkgs.lib.extend customLib;
|
||||||
libHm = home-manager.lib.extend customLib;
|
libHm = home-manager.lib.extend customLib;
|
||||||
|
|
||||||
systems = [
|
|
||||||
{
|
|
||||||
hostName = "desktop";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
hostName = "thinkpad";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
#
|
#
|
||||||
@ -100,65 +89,46 @@
|
|||||||
#
|
#
|
||||||
# ========= Host Configurations =========
|
# ========= Host Configurations =========
|
||||||
#
|
#
|
||||||
nixosConfigurations = builtins.listToAttrs (
|
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
|
||||||
builtins.map (
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
inherit
|
||||||
|
outputs
|
||||||
|
inputs
|
||||||
|
common
|
||||||
|
theme
|
||||||
|
lib
|
||||||
|
;
|
||||||
|
isDarwin = false;
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
./hosts/desktop
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
hostName,
|
home-manager = {
|
||||||
system,
|
# Backups conflicting files in case of error
|
||||||
user ? {
|
backupFileExtension = "bkp";
|
||||||
name = common.username;
|
useGlobalPkgs = true;
|
||||||
password = "temp";
|
useUserPackages = true;
|
||||||
},
|
# Passes inputs as an argument to home-manager
|
||||||
version ? common.version,
|
extraSpecialArgs = {
|
||||||
}:
|
|
||||||
{
|
|
||||||
name = hostName;
|
|
||||||
value = nixpkgs.lib.nixosSystem {
|
|
||||||
inherit system;
|
|
||||||
specialArgs = {
|
|
||||||
inherit
|
inherit
|
||||||
outputs
|
|
||||||
inputs
|
inputs
|
||||||
common
|
common
|
||||||
theme
|
theme
|
||||||
lib
|
libHm
|
||||||
hostName
|
|
||||||
version
|
|
||||||
;
|
;
|
||||||
isDarwin = false;
|
|
||||||
};
|
};
|
||||||
modules = [
|
users.${common.username} = import ./hosts/desktop/home-manager;
|
||||||
./hosts/${hostName}
|
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager = {
|
|
||||||
# Backups conflicting files in case of error
|
|
||||||
backupFileExtension = "bkp";
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit
|
|
||||||
inputs
|
|
||||||
common
|
|
||||||
theme
|
|
||||||
libHm
|
|
||||||
hostName
|
|
||||||
version
|
|
||||||
;
|
|
||||||
};
|
|
||||||
users.${user.name} = import ./hosts/${hostName}/home-manager;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
nixpkgs.overlays = with inputs; [
|
|
||||||
hyprpanel.overlay
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
) systems
|
{
|
||||||
);
|
nixpkgs.overlays = with inputs; [
|
||||||
|
hyprpanel.overlay
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
#
|
#
|
||||||
# ========= Formatting =========
|
# ========= Formatting =========
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
vlc
|
vlc
|
||||||
vdhcoapp # TODO run "vdhcoapp install" on startup
|
vdhcoapp # TODO run "vdhcoapp install" on startup
|
||||||
onlyoffice-desktopeditors
|
onlyoffice-desktopeditors
|
||||||
inputs.grayjay.packages.${system}.grayjay
|
inputs.grayjay.packages.${pkgs.system}.grayjay
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
nix.settings.experimental-features = [
|
||||||
|
74
hosts/desktop/flake.nix
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
{
|
||||||
|
description = "NixOS configuration";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||||
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-24.11";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs =
|
||||||
|
inputs@{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
nixpkgs-unstable,
|
||||||
|
home-manager,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
inherit (self) outputs;
|
||||||
|
common = import ./common.nix;
|
||||||
|
theme = import ../shared/theme.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
defaultPackage.${system} = home-manager.defaultPackage.${system};
|
||||||
|
|
||||||
|
# Adds the nix fmt command to format nix files
|
||||||
|
formatter.${system} = pkgs.nixfmt-rfc-style;
|
||||||
|
|
||||||
|
nixosConfigurations.${common.hostname} = nixpkgs.lib.nixosSystem {
|
||||||
|
system = system;
|
||||||
|
specialArgs = {
|
||||||
|
inherit
|
||||||
|
outputs
|
||||||
|
inputs
|
||||||
|
common
|
||||||
|
theme
|
||||||
|
;
|
||||||
|
}; # Pass args to modules
|
||||||
|
modules = [
|
||||||
|
./configuration.nix
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager = {
|
||||||
|
# Backups conflicting files in case of error
|
||||||
|
backupFileExtension = "bkp";
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
# Passes inputs as an argument to home-manager
|
||||||
|
extraSpecialArgs = { inherit inputs common theme; };
|
||||||
|
users.${common.username} = import ./home-manager;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
./overlays.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
overlays = {
|
||||||
|
# Gives access to unstable packages everywhere
|
||||||
|
unstable-packages = final: _prev: {
|
||||||
|
unstable = import nixpkgs-unstable {
|
||||||
|
system = final.system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -25,6 +25,7 @@ in
|
|||||||
./media
|
./media
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./rofi
|
./rofi
|
||||||
|
./wlogout
|
||||||
./hyprland
|
./hyprland
|
||||||
./spicetify.nix
|
./spicetify.nix
|
||||||
./yazi
|
./yazi
|
||||||
|
@ -2,12 +2,14 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./binds.nix
|
./binds.nix
|
||||||
|
./waybar
|
||||||
./hypridle
|
./hypridle
|
||||||
./hyprlock
|
./hyprlock
|
||||||
./hyprpanel
|
./hyprpanel
|
||||||
./hyprpaper.nix
|
./hyprpaper.nix
|
||||||
./hyprshot.nix
|
./hyprshot.nix
|
||||||
./settings.nix
|
./settings.nix
|
||||||
|
./swaync
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
@ -19,15 +19,9 @@
|
|||||||
|
|
||||||
# Override the final config with an arbitrary set.
|
# Override the final config with an arbitrary set.
|
||||||
# Useful for overriding colors in your selected theme.
|
# Useful for overriding colors in your selected theme.
|
||||||
# TODO fixes theming bugs in recent versions, should be removed when fixed
|
# Default: {}
|
||||||
override = {
|
override = {
|
||||||
theme = {
|
theme.bar.menus.text = "#123ABC";
|
||||||
bar.transparent = true;
|
|
||||||
font = {
|
|
||||||
name = "${theme.nerdFont} NF";
|
|
||||||
size = "15px";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure and theme almost all options from the GUI.
|
# Configure and theme almost all options from the GUI.
|
||||||
|
461
hosts/desktop/home-manager/hyprland/swaync/default.nix
Normal file
@ -0,0 +1,461 @@
|
|||||||
|
{ lib, theme, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.swaync = {
|
||||||
|
enable = false;
|
||||||
|
style = lib.mkDefault ''
|
||||||
|
* {
|
||||||
|
all: unset;
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: "${theme.nerdFont} Nerd Font", monospace;
|
||||||
|
transition: 200ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
trough highlight {
|
||||||
|
background: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
scale trough {
|
||||||
|
margin: 0 1rem;
|
||||||
|
background-color: #${theme.surface0Alpha};
|
||||||
|
min-height: 8px;
|
||||||
|
min-width: 70px;
|
||||||
|
}
|
||||||
|
|
||||||
|
slider {
|
||||||
|
background-color: #${theme.blueAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background .notification-row .notification-background {
|
||||||
|
box-shadow:
|
||||||
|
0 0 8px 0 rgba(0, 0, 0, 0.8),
|
||||||
|
inset 0 0 0 1px #${theme.surface0Alpha};
|
||||||
|
border-radius: 12.6px;
|
||||||
|
margin: 18px;
|
||||||
|
background-color: #${theme.baseAlpha};
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification {
|
||||||
|
padding: 7px;
|
||||||
|
border-radius: 12.6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification.critical {
|
||||||
|
box-shadow: inset 0 0 7px 0 #${theme.redAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content {
|
||||||
|
margin: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.summary {
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.time {
|
||||||
|
color: #${theme.subtext0Alpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.body {
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.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: 7px;
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
background-color: #${theme.surface0Alpha};
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
margin: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> *
|
||||||
|
.notification-action:hover {
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
background-color: #${theme.surface0Alpha};
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> *
|
||||||
|
.notification-action:active {
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
background-color: #${theme.sapphireAlpha};
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Close Button */
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.close-button {
|
||||||
|
margin: 7px;
|
||||||
|
padding: 2px;
|
||||||
|
border-radius: 6.3px;
|
||||||
|
color: #${theme.baseAlpha};
|
||||||
|
background-color: #${theme.redAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.close-button:hover {
|
||||||
|
background-color: #${theme.maroonAlpha};
|
||||||
|
color: #${theme.baseAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.close-button:active {
|
||||||
|
background-color: #${theme.redAlpha};
|
||||||
|
color: #${theme.baseAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center {
|
||||||
|
box-shadow:
|
||||||
|
0 0 8px 0 rgba(0, 0, 0, 0.8),
|
||||||
|
inset 0 0 0 1px #${theme.surface0Alpha};
|
||||||
|
border-radius: 12.6px;
|
||||||
|
margin: 18px;
|
||||||
|
background-color: #${theme.baseAlpha};
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
padding: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title > label {
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title button {
|
||||||
|
border-radius: 7px;
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
background-color: #${theme.surface0Alpha};
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title button:hover {
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
background-color: #585b70;
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title button:active {
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
background-color: #${theme.sapphireAlpha};
|
||||||
|
color: #${theme.baseAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background {
|
||||||
|
border-radius: 7px;
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
background-color: #${theme.surface0Alpha};
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
margin-top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background .notification {
|
||||||
|
padding: 7px;
|
||||||
|
border-radius: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification.critical {
|
||||||
|
box-shadow: inset 0 0 7px 0 #${theme.redAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content {
|
||||||
|
margin: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.summary {
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.time {
|
||||||
|
color: #a6adc8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.body {
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.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;
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
background-color: #${theme.crustAlpha};
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
margin: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> *
|
||||||
|
.notification-action:hover {
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
background-color: #${theme.surface0Alpha};
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> *
|
||||||
|
.notification-action:active {
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
background-color: #${theme.sapphireAlpha};
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background .close-button {
|
||||||
|
margin: 7px;
|
||||||
|
padding: 2px;
|
||||||
|
border-radius: 6.3px;
|
||||||
|
color: #${theme.baseAlpha};
|
||||||
|
background-color: #${theme.maroonAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-button {
|
||||||
|
border-radius: 6.3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background .close-button:hover {
|
||||||
|
background-color: #${theme.redAlpha};
|
||||||
|
color: #${theme.baseAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.close-button:active {
|
||||||
|
background-color: #${theme.redAlpha};
|
||||||
|
color: #${theme.baseAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background:hover {
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
background-color: #${theme.overlay1Alpha};
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background:active {
|
||||||
|
box-shadow: inset 0 0 0 1px #${theme.surface1Alpha};
|
||||||
|
background-color: #${theme.sapphireAlpha};
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification.critical progress {
|
||||||
|
background-color: #${theme.redAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification.low progress,
|
||||||
|
.notification.normal progress {
|
||||||
|
background-color: #${theme.blueAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center-dnd {
|
||||||
|
margin-top: 5px;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: #${theme.surface0Alpha};
|
||||||
|
border: 1px solid #${theme.surface1Alpha};
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center-dnd:checked {
|
||||||
|
background: #${theme.surface0Alpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center-dnd slider {
|
||||||
|
background: #${theme.surface1Alpha};
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd {
|
||||||
|
margin: 0px;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd > switch {
|
||||||
|
font-size: initial;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: #${theme.surface0Alpha};
|
||||||
|
border: 1px solid #${theme.surface1Alpha};
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd > switch:checked {
|
||||||
|
background: #${theme.surface0Alpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd > switch slider {
|
||||||
|
background: #${theme.surface1Alpha};
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #${theme.overlay0Alpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris .widget-mpris-player {
|
||||||
|
background: #${theme.surface0Alpha};
|
||||||
|
padding: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris .widget-mpris-title {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris .widget-mpris-subtitle {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-menubar > box > .menu-button-bar > button > label {
|
||||||
|
font-size: 3rem;
|
||||||
|
padding: 0.5rem 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-menubar > box > .menu-button-bar > :last-child {
|
||||||
|
color: #${theme.redAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.power-buttons button:hover,
|
||||||
|
.powermode-buttons button:hover,
|
||||||
|
.screenshot-buttons button:hover {
|
||||||
|
background: #${theme.surface0Alpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-label > label {
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-buttons-grid {
|
||||||
|
padding-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-buttons-grid > flowbox > flowboxchild > button label {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume {
|
||||||
|
padding-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume label {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
color: #${theme.sapphireAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume trough highlight {
|
||||||
|
background: #${theme.sapphireAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-backlight trough highlight {
|
||||||
|
background: #${theme.yellowAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-backlight label {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
color: #${theme.yellowAlpha};
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-backlight .KB {
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image {
|
||||||
|
padding-right: 0.5rem;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
108
hosts/desktop/home-manager/hyprland/waybar/config/config.jsonc
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
{
|
||||||
|
"layer": "top",
|
||||||
|
// Waybar at top layer
|
||||||
|
"position": "top",
|
||||||
|
// Waybar position (top|bottom|left|right)
|
||||||
|
// "width": 1280, // Waybar width
|
||||||
|
// Choose the order of the modules
|
||||||
|
"modules-left": ["hyprland/workspaces", "custom/music"],
|
||||||
|
"modules-center": ["hyprland/window"],
|
||||||
|
"modules-right": [
|
||||||
|
"hyprland/language",
|
||||||
|
"wireplumber",
|
||||||
|
"backlight",
|
||||||
|
"clock",
|
||||||
|
"custom/notification",
|
||||||
|
"tray",
|
||||||
|
"custom/lock",
|
||||||
|
"custom/power"
|
||||||
|
],
|
||||||
|
"hyprland/workspaces": {
|
||||||
|
"disable-scroll": false,
|
||||||
|
"sort-by-name": true,
|
||||||
|
"format": " {id} "
|
||||||
|
},
|
||||||
|
"hyprland/window": {
|
||||||
|
"format": "{initialTitle}"
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
"icon-size": 21,
|
||||||
|
"spacing": 10
|
||||||
|
},
|
||||||
|
// TODO better music module
|
||||||
|
"custom/music": {
|
||||||
|
"format": " {}",
|
||||||
|
"escape": true,
|
||||||
|
"interval": 5,
|
||||||
|
"tooltip": false,
|
||||||
|
"exec": "playerctl metadata --format='{{ title }}'",
|
||||||
|
"on-click": "playerctl play-pause",
|
||||||
|
"max-length": 50
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"timezone": "Europe/Oslo",
|
||||||
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||||
|
"format": " {:%H:%M %d/%m}",
|
||||||
|
"calendar": {
|
||||||
|
"mode": "month",
|
||||||
|
"weeks-pos": "left",
|
||||||
|
"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>"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"backlight": {
|
||||||
|
"device": "intel_backlight",
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||||
|
},
|
||||||
|
"wireplumber": {
|
||||||
|
// "scroll-step": 1, // %, can be a float
|
||||||
|
"format": "{icon} {volume}%",
|
||||||
|
"format-muted": " ",
|
||||||
|
"format-icons": {
|
||||||
|
"default": ["", " ", " "]
|
||||||
|
},
|
||||||
|
"on-click": "pavucontrol"
|
||||||
|
},
|
||||||
|
"hyprland/language": {
|
||||||
|
"format-en": "EN",
|
||||||
|
"format-no": "NO",
|
||||||
|
"keyboard-name": "logitech-logitech-g710-keyboard",
|
||||||
|
"on-click": "hyprctl switchxkblayout logitech-logitech-g710-keyboard next"
|
||||||
|
},
|
||||||
|
"custom/lock": {
|
||||||
|
"tooltip": false,
|
||||||
|
"on-click": "sh -c '(sleep 0.5s; hyprlock)'",
|
||||||
|
"format": ""
|
||||||
|
},
|
||||||
|
"custom/power": {
|
||||||
|
"tooltip": false,
|
||||||
|
"on-click": "wlogout &",
|
||||||
|
"format": " "
|
||||||
|
},
|
||||||
|
"custom/notification": {
|
||||||
|
"tooltip": false,
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"notification": "<span foreground='#f38ba8'><sup></sup></span>",
|
||||||
|
"none": "",
|
||||||
|
"dnd-notification": "<span foreground='#f38ba8'><sup></sup></span>",
|
||||||
|
"dnd-none": "",
|
||||||
|
"inhibited-notification": "<span foreground='#f38ba8'><sup></sup></span>",
|
||||||
|
"inhibited-none": "",
|
||||||
|
"dnd-inhibited-notification": "<span foreground='#f38ba8'><sup></sup></span>",
|
||||||
|
"dnd-inhibited-none": ""
|
||||||
|
},
|
||||||
|
"return-type": "json",
|
||||||
|
"exec-if": "which swaync-client",
|
||||||
|
"exec": "swaync-client -swb",
|
||||||
|
"on-click": "swaync-client -t -sw",
|
||||||
|
"on-click-right": "swaync-client -d -sw",
|
||||||
|
"escape": true
|
||||||
|
}
|
||||||
|
}
|
37
hosts/desktop/home-manager/hyprland/waybar/config/mocha.css
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
*
|
||||||
|
* Catppuccin Mocha palette
|
||||||
|
* Maintainer: rubyowo
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
@define-color base #1e1e2e;
|
||||||
|
@define-color mantle #181825;
|
||||||
|
@define-color crust #11111b;
|
||||||
|
|
||||||
|
@define-color text #cdd6f4;
|
||||||
|
@define-color subtext0 #a6adc8;
|
||||||
|
@define-color subtext1 #bac2de;
|
||||||
|
|
||||||
|
@define-color surface0 #313244;
|
||||||
|
@define-color surface1 #45475a;
|
||||||
|
@define-color surface2 #585b70;
|
||||||
|
|
||||||
|
@define-color overlay0 #6c7086;
|
||||||
|
@define-color overlay1 #7f849c;
|
||||||
|
@define-color overlay2 #9399b2;
|
||||||
|
|
||||||
|
@define-color blue #89b4fa;
|
||||||
|
@define-color lavender #b4befe;
|
||||||
|
@define-color sapphire #74c7ec;
|
||||||
|
@define-color sky #89dceb;
|
||||||
|
@define-color teal #94e2d5;
|
||||||
|
@define-color green #a6e3a1;
|
||||||
|
@define-color yellow #f9e2af;
|
||||||
|
@define-color peach #fab387;
|
||||||
|
@define-color maroon #eba0ac;
|
||||||
|
@define-color red #f38ba8;
|
||||||
|
@define-color mauve #cba6f7;
|
||||||
|
@define-color pink #f5c2e7;
|
||||||
|
@define-color flamingo #f2cdcd;
|
||||||
|
@define-color rosewater #f5e0dc;
|
104
hosts/desktop/home-manager/hyprland/waybar/config/style.css
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
@import "mocha.css";
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: JetBrainsMono Nerd Font;
|
||||||
|
font-size: 15px;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#waybar {
|
||||||
|
background: transparent;
|
||||||
|
color: @text;
|
||||||
|
margin: 5px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces {
|
||||||
|
border-radius: 1rem;
|
||||||
|
background-color: @surface0;
|
||||||
|
margin: 5px 5px 5px 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
color: @lavender;
|
||||||
|
border-radius: 1rem;
|
||||||
|
padding: 0.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active {
|
||||||
|
color: @sky;
|
||||||
|
border-radius: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
color: @sapphire;
|
||||||
|
border-radius: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#language,
|
||||||
|
#window,
|
||||||
|
#custom-notification,
|
||||||
|
#custom-music,
|
||||||
|
#tray,
|
||||||
|
#backlight,
|
||||||
|
#clock,
|
||||||
|
#wireplumber,
|
||||||
|
#custom-lock,
|
||||||
|
#custom-power {
|
||||||
|
background-color: @surface0;
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
color: @blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
#backlight {
|
||||||
|
color: @yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
#backlight {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#language {
|
||||||
|
color: @red;
|
||||||
|
border-radius: 1rem 0 0 1rem;
|
||||||
|
margin-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wireplumber {
|
||||||
|
color: @maroon;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-music {
|
||||||
|
color: @mauve;
|
||||||
|
border-radius: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#window {
|
||||||
|
color: @mauve;
|
||||||
|
border-radius: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-lock {
|
||||||
|
border-radius: 1rem 0 0 1rem;
|
||||||
|
color: @lavender;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-power {
|
||||||
|
margin-right: 1rem;
|
||||||
|
border-radius: 0 1rem 1rem 0;
|
||||||
|
color: @red;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-notification {
|
||||||
|
margin-right: 1rem;
|
||||||
|
border-radius: 0 1rem 1rem 0;
|
||||||
|
color: @sapphire;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray {
|
||||||
|
margin-right: 1rem;
|
||||||
|
border-radius: 1rem;
|
||||||
|
}
|
6
hosts/desktop/home-manager/hyprland/waybar/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
home.file.".config/waybar" = {
|
||||||
|
source = ./config;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
}
|
116
hosts/desktop/home-manager/wlogout/default.nix
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
# Log out and shutdown menu
|
||||||
|
{
|
||||||
|
home.file =
|
||||||
|
let
|
||||||
|
dir = ".config/wlogout";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
"${dir}/hibernate.svg".source = ./hibernate.svg;
|
||||||
|
"${dir}/lock.svg".source = ./lock.svg;
|
||||||
|
"${dir}/logout.svg".source = ./logout.svg;
|
||||||
|
"${dir}/reboot.svg".source = ./reboot.svg;
|
||||||
|
"${dir}/shutdown.svg".source = ./shutdown.svg;
|
||||||
|
"${dir}/suspend.svg".source = ./suspend.svg;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.wlogout = {
|
||||||
|
enable = false;
|
||||||
|
layout = [
|
||||||
|
{
|
||||||
|
label = "lock";
|
||||||
|
action = "sh -c '(sleep 0.5s; hyprlock)'";
|
||||||
|
text = "Lock";
|
||||||
|
keybind = "l";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "hibernate";
|
||||||
|
action = "systemctl hibernate";
|
||||||
|
text = "Hibernate";
|
||||||
|
keybind = "h";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "logout";
|
||||||
|
action = "loginctl terminate-user $USER";
|
||||||
|
text = "Logout";
|
||||||
|
keybind = "e";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "shutdown";
|
||||||
|
action = "systemctl poweroff";
|
||||||
|
text = "Shutdown";
|
||||||
|
keybind = "s";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "suspend";
|
||||||
|
action = "systemctl suspend";
|
||||||
|
text = "Suspend";
|
||||||
|
keybind = "u";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
label = "reboot";
|
||||||
|
action = "systemctl reboot";
|
||||||
|
text = "Reboot";
|
||||||
|
keybind = "r";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
style =
|
||||||
|
let
|
||||||
|
theme = import ../../theme.nix;
|
||||||
|
in
|
||||||
|
''
|
||||||
|
* {
|
||||||
|
background-image: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
background-color: rgba(30, 30, 46, 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
border-radius: 0;
|
||||||
|
border-color: #${theme.pinkAlpha};
|
||||||
|
text-decoration-color: #${theme.textAlpha};
|
||||||
|
color: #${theme.textAlpha};
|
||||||
|
background-color: #${theme.mantleAlpha};
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:focus,
|
||||||
|
button:active,
|
||||||
|
button:hover {
|
||||||
|
/* 20% Overlay 2, 80% mantle */
|
||||||
|
background-color: rgb(48, 50, 66);
|
||||||
|
outline-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#lock {
|
||||||
|
background-image: url("./lock.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#logout {
|
||||||
|
background-image: url("./logout.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#suspend {
|
||||||
|
background-image: url("./suspend.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#hibernate {
|
||||||
|
background-image: url("./hibernate.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#shutdown {
|
||||||
|
background-image: url("./shutdown.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#reboot {
|
||||||
|
background-image: url("./reboot.svg");
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
7
hosts/desktop/home-manager/wlogout/hibernate.svg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#f5c2e7" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><g><path d="M500,10C229.4,10,10,229.4,10,500s219.4,490,490,490s490-219.4,490-490S770.6,10,500,10z M500,885.1c-212.7,0-385.1-172.4-385.1-385.1S287.3,114.9,500,114.9S885.1,287.3,885.1,500S712.7,885.1,500,885.1z M576.5,308.7v382.4c0,42.2-34.2,76.5-76.5,76.5c-42.3,0-76.5-34.2-76.5-76.5V308.7c0-42.2,34.2-76.5,76.5-76.5C542.2,232.3,576.5,266.5,576.5,308.7z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 969 B |
7
hosts/desktop/home-manager/wlogout/lock.svg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#f5c2e7" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><g><path d="M321.8,455.5h356.4V321.8c0-49.2-17.4-91.2-52.2-126c-34.8-34.8-76.8-52.2-126-52.2c-49.2,0-91.2,17.4-126,52.2c-34.8,34.8-52.2,76.8-52.2,126L321.8,455.5L321.8,455.5z M900.9,522.3v400.9c0,18.6-6.5,34.3-19.5,47.3c-13,13-28.8,19.5-47.3,19.5H165.9c-18.6,0-34.3-6.5-47.3-19.5s-19.5-28.8-19.5-47.3V522.3c0-18.6,6.5-34.3,19.5-47.3c13-13,28.8-19.5,47.3-19.5h22.3V321.8c0-85.4,30.6-158.7,91.9-219.9C341.3,40.6,414.6,10,500,10c85.4,0,158.7,30.6,219.9,91.9c61.3,61.3,91.9,134.6,91.9,219.9v133.6h22.3c18.6,0,34.3,6.5,47.3,19.5C894.4,487.9,900.9,503.7,900.9,522.3L900.9,522.3z"/></g></g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
7
hosts/desktop/home-manager/wlogout/logout.svg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#f5c2e7" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><path d="M622.5,990H50.8C26.3,990,10,973.7,10,949.2V50.8C10,26.3,26.3,10,50.8,10h571.7c24.5,0,40.8,16.3,40.8,40.8v285.8c0,24.5-16.3,40.8-40.8,40.8s-40.8-16.3-40.8-40.8v-245h-490v816.7h490v-245c0-24.5,16.3-40.8,40.8-40.8s40.8,16.3,40.8,40.8v285.8C663.3,973.7,647,990,622.5,990z"/><path d="M949.2,540.8H336.7c-24.5,0-40.8-16.3-40.8-40.8c0-24.5,16.3-40.8,40.8-40.8h612.5c24.5,0,40.8,16.3,40.8,40.8C990,524.5,973.7,540.8,949.2,540.8z"/><path d="M949.2,540.8c-12.3,0-20.4-4.1-28.6-12.3L757.3,365.3c-16.3-16.3-16.3-40.8,0-57.2c16.3-16.3,40.8-16.3,57.2,0l163.3,163.3c16.3,16.3,16.3,40.8,0,57.2C969.6,536.8,961.4,540.8,949.2,540.8z"/><path d="M785.8,704.2c-12.3,0-20.4-4.1-28.6-12.3c-16.3-16.3-16.3-40.8,0-57.2l163.3-163.3c16.3-16.3,40.8-16.3,57.2,0c16.3,16.3,16.3,40.8,0,57.2L814.4,691.9C806.3,700.1,798.1,704.2,785.8,704.2z"/></g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
7
hosts/desktop/home-manager/wlogout/reboot.svg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#f5c2e7" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><path d="M134.6,285.6C64.9,420.7,60.1,590,137.1,723.4L42,668.5l-32,55.4c93.1,52.1,133.6,75.9,184,106.2c28.5-51.5,52.8-94.4,107.4-186.1L246,612l-53.4,92.5C65.4,502.7,167.2,200.3,398.8,126.2C638,29.3,929,223.5,931.5,481.5c19.6,236.7-208.9,443.6-439.3,416.2l-29.5,51c277.7,54.4,556.5-201.7,524.7-483.1C976.1,170.8,637.1-41.2,367.1,77.5C262.8,114.2,183.1,191.5,134.6,285.6z"/></g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 877 B |
7
hosts/desktop/home-manager/wlogout/shutdown.svg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#f5c2e7" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><path d="M764,152.1c30.9,22,58.3,46.8,82.4,74.6c24,27.8,44.6,57.8,61.8,90.1c17.2,32.3,30.2,66.4,39.1,102.4c8.9,36,13.4,72.6,13.4,109.6c0,63.8-12.2,123.7-36.5,179.6c-24.4,55.9-57.3,104.7-98.8,146.2c-41.5,41.5-90.2,74.5-146.2,98.8C623.2,977.8,563.3,990,499.5,990c-63.1,0-122.7-12.2-178.6-36.5c-55.9-24.4-104.8-57.3-146.7-98.8c-41.9-41.5-74.8-90.2-98.8-146.2c-24-55.9-36-115.8-36-179.6c0-36.4,4.3-72.1,12.9-107.1c8.6-35,20.8-68.3,36.5-99.9c15.8-31.6,35.3-61.1,58.7-88.5c23.3-27.5,49.4-52.2,78.2-74.1c15.1-11,31.4-15.1,48.9-12.4c17.5,2.7,31.7,11.3,42.7,25.7c11,14.4,15.1,30.5,12.4,48.4c-2.7,17.8-11.3,32.3-25.7,43.2c-43.2,31.6-76.4,70.3-99.3,116.3c-23,46-34.5,95.4-34.5,148.2c0,45.3,8.6,88,25.7,128.2c17.2,40.1,40.7,75.1,70.5,105c29.9,29.9,64.9,53.5,105,71c40.1,17.5,82.9,26.3,128.2,26.3c45.3,0,88-8.7,128.2-26.3c40.1-17.5,75.1-41.2,105-71s53.5-64.9,71-105c17.5-40.1,26.3-82.9,26.3-128.2c0-53.5-12.4-104.1-37.1-151.8c-24.7-47.7-59.4-87-104-117.9c-15.1-10.3-24.2-24.4-27.3-42.2c-3.1-17.8,0.5-34.3,10.8-49.4c10.3-14.4,24.4-23.2,42.2-26.2C732.5,138.2,748.9,141.8,764,152.1L764,152.1z M499.5,531.9c-17.8,0-33.1-6.3-45.8-19c-12.7-12.7-19-28-19-45.8V75.9c0-17.8,6.3-33.3,19-46.3c12.7-13,28-19.6,45.8-19.6c18.5,0,34.1,6.5,46.8,19.6c12.7,13,19,28.5,19,46.3v391.2c0,17.8-6.3,33.1-19,45.8C533.6,525.6,518,531.9,499.5,531.9L499.5,531.9z"/></g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
53
hosts/desktop/home-manager/wlogout/style.css
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
* {
|
||||||
|
background-image: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
background-color: rgba(30, 30, 46, 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
border-radius: 0;
|
||||||
|
border-color: #f5c2e7;
|
||||||
|
text-decoration-color: #cdd6f4;
|
||||||
|
color: #cdd6f4;
|
||||||
|
background-color: #181825;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:focus,
|
||||||
|
button:active,
|
||||||
|
button:hover {
|
||||||
|
/* 20% Overlay 2, 80% mantle */
|
||||||
|
background-color: rgb(48, 50, 66);
|
||||||
|
outline-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#lock {
|
||||||
|
background-image: url("./lock.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#logout {
|
||||||
|
background-image: url("./logout.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#suspend {
|
||||||
|
background-image: url("./suspend.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#hibernate {
|
||||||
|
background-image: url("./hibernate.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#shutdown {
|
||||||
|
background-image: url("./shutdown.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#reboot {
|
||||||
|
background-image: url("./reboot.svg");
|
||||||
|
}
|
7
hosts/desktop/home-manager/wlogout/suspend.svg
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#f5c2e7" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><path d="M500,990c-66.1,0-130.3-13-190.7-38.5c-58.4-24.7-110.8-60-155.7-105s-80.3-97.4-105-155.7C23,630.3,10,566.1,10,500c0-66.1,13-130.3,38.5-190.7c24.7-58.4,60-110.8,105-155.7c45-45,97.4-80.3,155.7-105C369.7,23,433.9,10,500,10c66.1,0,130.3,13,190.7,38.5c58.4,24.7,110.8,60,155.7,105c45,45,80.3,97.4,105,155.7C977,369.7,990,433.9,990,500c0,66.1-13,130.3-38.5,190.7c-24.7,58.4-60,110.8-105,155.7s-97.4,80.3-155.7,105C630.3,977,566.1,990,500,990z M500,79.6c-112.3,0-217.9,43.7-297.3,123.1C123.3,282.1,79.6,387.7,79.6,500s43.7,217.9,123.1,297.3c79.4,79.4,185,123.1,297.3,123.1c112.3,0,217.9-43.7,297.3-123.1c79.4-79.4,123.1-185,123.1-297.3s-43.7-217.9-123.1-297.3C717.9,123.3,612.3,79.6,500,79.6z"/><path d="M322.5,290.6h108v412h-108V290.6z"/><path d="M561.6,290.6h107.9v412H561.6V290.6z"/></g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
@ -1,9 +1,9 @@
|
|||||||
{ hostName, ... }:
|
{ common, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
inherit hostName;
|
hostName = common.hostname;
|
||||||
# wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
};
|
};
|
||||||
|
|
||||||
|
7
hosts/desktop/overlays.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = with inputs; [
|
||||||
|
hyprpanel.overlay
|
||||||
|
];
|
||||||
|
}
|
@ -1,54 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
hostName,
|
|
||||||
user,
|
|
||||||
version,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
boot = {
|
|
||||||
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
|
|
||||||
initrd.availableKernelModules = [
|
|
||||||
"xhci_pci"
|
|
||||||
"usbhid"
|
|
||||||
"usb_storage"
|
|
||||||
];
|
|
||||||
loader = {
|
|
||||||
grub.enable = false;
|
|
||||||
generic-extlinux-compatible.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
vim
|
|
||||||
];
|
|
||||||
|
|
||||||
fileSystems = {
|
|
||||||
"/" = {
|
|
||||||
device = "/dev/disk/by-label/NIXOS_SD";
|
|
||||||
fsType = "ext4";
|
|
||||||
options = [ "noatime" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
inherit hostName;
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
system.stateVersion = version;
|
|
||||||
|
|
||||||
users = {
|
|
||||||
mutableUsers = false;
|
|
||||||
users.${user.name} = {
|
|
||||||
isNormalUser = true;
|
|
||||||
password = user.password;
|
|
||||||
extraGroups = [ "wheel" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
rec {
|
|
||||||
default = {
|
|
||||||
browser = "zen";
|
|
||||||
calculator = "gnome-calculator";
|
|
||||||
fileManager = "nautilus";
|
|
||||||
imageViewer = "loupe";
|
|
||||||
lockScreen = "hyprlock";
|
|
||||||
terminal = "kitty";
|
|
||||||
};
|
|
||||||
|
|
||||||
dir = {
|
|
||||||
home = "/home/${username}";
|
|
||||||
pictures = "${dir.home}/Pictures";
|
|
||||||
};
|
|
||||||
|
|
||||||
keymaps = {
|
|
||||||
layout = "gb,no";
|
|
||||||
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
|
|
||||||
};
|
|
||||||
|
|
||||||
# Empty matches all
|
|
||||||
monitor1 = "";
|
|
||||||
|
|
||||||
username = "martin";
|
|
||||||
}
|
|
@ -1,69 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
outputs,
|
|
||||||
common,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [ ./modules ];
|
|
||||||
|
|
||||||
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
|
|
||||||
|
|
||||||
# Bootloader.
|
|
||||||
boot.loader = {
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with 'passwd'.
|
|
||||||
users.users.${common.username} = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = common.username;
|
|
||||||
extraGroups = [
|
|
||||||
"networkmanager"
|
|
||||||
"wheel"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Allow unfree packages
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
environment.sessionVariables = {
|
|
||||||
# Tells Electron apps to use Wayland
|
|
||||||
NIXOS_OZONE_WL = "1";
|
|
||||||
};
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
|
||||||
# $ nix search wget
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
brightnessctl
|
|
||||||
wget
|
|
||||||
xdg-utils
|
|
||||||
xdg-desktop-portal
|
|
||||||
xdg-desktop-portal-gtk
|
|
||||||
unstable.protonmail-desktop
|
|
||||||
stremio
|
|
||||||
fastfetch
|
|
||||||
discord
|
|
||||||
nix-prefetch-github # Cmd to get rev and hash from GitHub
|
|
||||||
gimp
|
|
||||||
vlc
|
|
||||||
vdhcoapp
|
|
||||||
onlyoffice-desktopeditors
|
|
||||||
];
|
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.kdeconnect.enable = true;
|
|
||||||
|
|
||||||
services = {
|
|
||||||
flatpak.enable = false;
|
|
||||||
xserver.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = common.system.version;
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
let
|
|
||||||
theme = import ../theme.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
catppuccin.btop = {
|
|
||||||
enable = true;
|
|
||||||
flavor = theme.flavor;
|
|
||||||
};
|
|
||||||
}
|
|
Before Width: | Height: | Size: 2.1 KiB |
@ -1,29 +0,0 @@
|
|||||||
## Audio visualizer
|
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
theme = import ../../theme.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
catppuccin.cava = {
|
|
||||||
enable = true;
|
|
||||||
flavor = theme.flavor;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.cava = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.cava;
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.desktopEntries.cava = {
|
|
||||||
name = "Cava";
|
|
||||||
genericName = "Audio visualizer";
|
|
||||||
terminal = true;
|
|
||||||
exec = "${pkgs.cava}/bin/cava";
|
|
||||||
icon = ./cava.png;
|
|
||||||
categories = [
|
|
||||||
"Audio"
|
|
||||||
"AudioVideo"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
let
|
|
||||||
theme = import ../theme.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
catppuccin.cursors = {
|
|
||||||
enable = true;
|
|
||||||
flavor = theme.flavor;
|
|
||||||
accent = "dark";
|
|
||||||
};
|
|
||||||
|
|
||||||
home.pointerCursor = {
|
|
||||||
gtk.enable = true;
|
|
||||||
x11.enable = true;
|
|
||||||
size = 16;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
# TODO more defaults
|
|
||||||
{
|
|
||||||
xdg.mimeApps = {
|
|
||||||
enable = true;
|
|
||||||
defaultApplications =
|
|
||||||
let
|
|
||||||
browser = "zen.desktop";
|
|
||||||
imageViewer = "org.gnome.Loupe.desktop";
|
|
||||||
pdfReader = "org.gnome.Papers.desktop";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
"text/html" = browser;
|
|
||||||
"x-scheme-handler/http" = browser;
|
|
||||||
"x-scheme-handler/https" = browser;
|
|
||||||
"x-scheme-handler/about" = browser;
|
|
||||||
"x-scheme-handler/unknown" = browser;
|
|
||||||
"image/jpg" = imageViewer;
|
|
||||||
"image/jpeg" = imageViewer;
|
|
||||||
"image/png" = imageViewer;
|
|
||||||
"image/gif" = imageViewer;
|
|
||||||
"application/pdf" = pdfReader;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,67 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
common = import ../common.nix;
|
|
||||||
username = common.username;
|
|
||||||
dir = common.dir;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.catppuccin.homeManagerModules.catppuccin
|
|
||||||
./btop.nix
|
|
||||||
./cava
|
|
||||||
./cursors.nix
|
|
||||||
./default-applications.nix
|
|
||||||
./development
|
|
||||||
./fastfetch.nix
|
|
||||||
./fish.nix
|
|
||||||
./freetube.nix
|
|
||||||
./gtk.nix
|
|
||||||
./kitty.nix
|
|
||||||
./mpv.nix
|
|
||||||
./nextcloud.nix
|
|
||||||
./hyprland
|
|
||||||
./spicetify.nix
|
|
||||||
./yazi
|
|
||||||
./zen
|
|
||||||
];
|
|
||||||
|
|
||||||
dconf = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
# Prefer dark mode for all GTK apps
|
|
||||||
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home = {
|
|
||||||
username = username;
|
|
||||||
homeDirectory = dir.home;
|
|
||||||
|
|
||||||
sessionVariables = {
|
|
||||||
XDG_PICTURES_DIR = dir.pictures; # Define the default dir for pictures
|
|
||||||
};
|
|
||||||
|
|
||||||
# You can update Home Manager without changing this value. See
|
|
||||||
# the Home Manager release notes for a list of state version
|
|
||||||
# changes in each release.
|
|
||||||
stateVersion = common.system.version;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
btop.enable = true;
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
home-manager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
gpg-agent = {
|
|
||||||
enable = true;
|
|
||||||
pinentryPackage = pkgs.pinentry-curses;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
./git.nix
|
|
||||||
./nixvim
|
|
||||||
./zed.nix
|
|
||||||
];
|
|
||||||
# TODO set Wayland vmOptions in Jetbrains products, Requires current installed version in path
|
|
||||||
# -Dawt.toolkit.name=WLToolKit
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [ git-crypt ];
|
|
||||||
|
|
||||||
programs.git =
|
|
||||||
let
|
|
||||||
package = pkgs.git.override { withLibsecret = true; };
|
|
||||||
in
|
|
||||||
{
|
|
||||||
enable = true;
|
|
||||||
package = package;
|
|
||||||
userName = "Martin Berg Alstad";
|
|
||||||
userEmail = "git@martials.no";
|
|
||||||
|
|
||||||
aliases = {
|
|
||||||
amend = "commit --amend";
|
|
||||||
cm = "commit";
|
|
||||||
s = "status";
|
|
||||||
};
|
|
||||||
|
|
||||||
signing = {
|
|
||||||
signByDefault = true;
|
|
||||||
key = "848D71DE0590C199";
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = {
|
|
||||||
push.autoSetupRemote = true;
|
|
||||||
safe.directory = "/etc/nixos";
|
|
||||||
credential.helper = "${package}/bin/git-credential-libsecret";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,77 +0,0 @@
|
|||||||
# Neovim configuration for Nix
|
|
||||||
{ inputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.nixvim.homeManagerModules.nixvim
|
|
||||||
];
|
|
||||||
|
|
||||||
catppuccin.nvim.enable = true;
|
|
||||||
|
|
||||||
home.sessionVariables.EDITOR = "nvim";
|
|
||||||
|
|
||||||
programs.nixvim = {
|
|
||||||
enable = true;
|
|
||||||
clipboard.providers.wl-copy.enable = true;
|
|
||||||
colorschemes.catppuccin.enable = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
vimdiffAlias = true; # Alias vimdiff to nvim -d
|
|
||||||
|
|
||||||
opts = {
|
|
||||||
number = true; # Show line numbers
|
|
||||||
relativenumber = true; # Show relative line numbers
|
|
||||||
|
|
||||||
shiftwidth = 2; # Tab width should be 2
|
|
||||||
};
|
|
||||||
|
|
||||||
plugins = {
|
|
||||||
bufferline.enable = false;
|
|
||||||
|
|
||||||
# Formatters
|
|
||||||
conform-nvim = {
|
|
||||||
enable = true;
|
|
||||||
# TODO use nix fmt on save
|
|
||||||
settings = { };
|
|
||||||
};
|
|
||||||
|
|
||||||
lsp = {
|
|
||||||
enable = true;
|
|
||||||
servers = {
|
|
||||||
nixd.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
lualine.enable = true;
|
|
||||||
luasnip.enable = true;
|
|
||||||
|
|
||||||
# Completions
|
|
||||||
cmp = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
autoEnableSources = true;
|
|
||||||
|
|
||||||
# TODO complete on <tab>
|
|
||||||
settings = {
|
|
||||||
sources = [
|
|
||||||
{ name = "nvim-lsp"; }
|
|
||||||
{ name = "path"; }
|
|
||||||
{ name = "buffer"; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
treesitter.enable = true;
|
|
||||||
web-devicons.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfigLua = ''
|
|
||||||
-- Translucent background
|
|
||||||
vim.cmd [[
|
|
||||||
highlight Normal guibg=none
|
|
||||||
highlight NonText guibg=none
|
|
||||||
highlight Normal ctermbg=none
|
|
||||||
highlight NonText ctermbg=none
|
|
||||||
]]
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,57 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.zed-editor = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.unstable.zed-editor;
|
|
||||||
extensions = [
|
|
||||||
"html"
|
|
||||||
"catppuccin"
|
|
||||||
"catppuccin-icons"
|
|
||||||
"toml"
|
|
||||||
"nix"
|
|
||||||
"git-firefly"
|
|
||||||
"just"
|
|
||||||
];
|
|
||||||
userSettings =
|
|
||||||
let
|
|
||||||
theme = import ../../theme.nix;
|
|
||||||
font = "${theme.nerdFont} Nerd Font";
|
|
||||||
fontSize = 14;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
assistant = {
|
|
||||||
default_model = {
|
|
||||||
provider = "ollama";
|
|
||||||
model = "deepseek-r1:8b";
|
|
||||||
};
|
|
||||||
version = "2";
|
|
||||||
};
|
|
||||||
autosave = "on_focus_change";
|
|
||||||
base_keymap = "JetBrains";
|
|
||||||
buffer_font_family = font;
|
|
||||||
features = {
|
|
||||||
edit_completion_provider = "zed";
|
|
||||||
};
|
|
||||||
icon_theme = "Catppuccin Mocha";
|
|
||||||
# icon_theme = { TODO replace icon theme above with below
|
|
||||||
# mode = theme.mode;
|
|
||||||
# light = "Catppuccin Mocha";
|
|
||||||
# dark = "Catppuccin Mocha";
|
|
||||||
# };
|
|
||||||
ui_font_family = font;
|
|
||||||
ui_font_size = fontSize;
|
|
||||||
buffer_font_size = fontSize;
|
|
||||||
tabs = {
|
|
||||||
file_icons = true;
|
|
||||||
git_status = true;
|
|
||||||
};
|
|
||||||
theme = {
|
|
||||||
mode = theme.mode;
|
|
||||||
light = "Catppuccin Latte";
|
|
||||||
dark = "Catppuccin Mocha";
|
|
||||||
};
|
|
||||||
lsp.nil.initialization_options.formatting.command = [ "nixfmt" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,60 +0,0 @@
|
|||||||
{
|
|
||||||
programs = {
|
|
||||||
fish.shellAliases.fetch = "fastfetch";
|
|
||||||
fastfetch = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
logo = {
|
|
||||||
source = "${../Catppuccin.png}";
|
|
||||||
type = "kitty";
|
|
||||||
height = 18;
|
|
||||||
padding.top = 2;
|
|
||||||
};
|
|
||||||
display.separator = " ";
|
|
||||||
modules =
|
|
||||||
let
|
|
||||||
keyColor = "34";
|
|
||||||
module = type: key: {
|
|
||||||
inherit type key keyColor;
|
|
||||||
};
|
|
||||||
formatModule = type: key: format: {
|
|
||||||
inherit
|
|
||||||
type
|
|
||||||
key
|
|
||||||
format
|
|
||||||
keyColor
|
|
||||||
;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
[
|
|
||||||
"break"
|
|
||||||
"break"
|
|
||||||
{
|
|
||||||
type = "title";
|
|
||||||
keyWidth = 10;
|
|
||||||
}
|
|
||||||
"break"
|
|
||||||
(module "os" " ")
|
|
||||||
(module "kernel" " ")
|
|
||||||
(formatModule "packages" " " "{} (nixpkgs)")
|
|
||||||
(module "shell" " ")
|
|
||||||
(module "terminal" " ")
|
|
||||||
(module "wm" " ")
|
|
||||||
(module "theme" " ")
|
|
||||||
(module "cursor" " ")
|
|
||||||
(module "terminalfont" " ")
|
|
||||||
(module "uptime" " ")
|
|
||||||
(formatModule "datetime" " " "{1}-{3}-{11}")
|
|
||||||
(module "cpu" " ")
|
|
||||||
(module "gpu" " ")
|
|
||||||
(module "sound" " ")
|
|
||||||
(module "lm" " ")
|
|
||||||
"break"
|
|
||||||
"colors"
|
|
||||||
"break"
|
|
||||||
"break"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,57 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
let
|
|
||||||
theme = import ../theme.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
catppuccin = {
|
|
||||||
fish = {
|
|
||||||
enable = true;
|
|
||||||
flavor = theme.flavor;
|
|
||||||
};
|
|
||||||
starship = {
|
|
||||||
enable = true;
|
|
||||||
flavor = theme.flavor;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
fish = {
|
|
||||||
enable = true;
|
|
||||||
# Start starship when creating a new shell
|
|
||||||
interactiveShellInit = ''
|
|
||||||
starship init fish | source
|
|
||||||
${pkgs.fortune}/bin/fortune | ${pkgs.cowsay}/bin/cowsay -f tux
|
|
||||||
'';
|
|
||||||
plugins = [
|
|
||||||
{
|
|
||||||
# !! to get the previous command
|
|
||||||
# https://github.com/BrewingWeasel/fishbang
|
|
||||||
name = "fishbang";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "BrewingWeasel";
|
|
||||||
repo = "fishbang";
|
|
||||||
rev = "50389667eb9ac79edcff9b987c83e1de8ac93921";
|
|
||||||
hash = "sha256-IneNWyfo29C7FDA5b6pTZRX3HpP6y/dRM6GXuLq2+zc=";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
shellAliases = {
|
|
||||||
nix-shell = "nix-shell --run fish"; # Start nix-shells using fishcd
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
starship = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
directory.substitutions = {
|
|
||||||
"Documents" = " ";
|
|
||||||
"Downloads" = " ";
|
|
||||||
"Music" = " ";
|
|
||||||
"Pictures" = " ";
|
|
||||||
"Git" = " ";
|
|
||||||
"nextcloud" = " ";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,53 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
catppuccin.freetube.enable = true;
|
|
||||||
|
|
||||||
programs.freetube = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.unstable.freetube;
|
|
||||||
settings = {
|
|
||||||
allowDashAv1Formats = true;
|
|
||||||
checkForUpdates = false;
|
|
||||||
currentLocale = "en-GB";
|
|
||||||
defaultTheatreMode = true;
|
|
||||||
defaultQuality = "1080";
|
|
||||||
displayVideoPlayButton = false;
|
|
||||||
region = "NO";
|
|
||||||
useSponsorBlock = true;
|
|
||||||
|
|
||||||
sponsorBlockSponsor = {
|
|
||||||
color = "CatppuccinMochaGreen";
|
|
||||||
skip = "autoSkip";
|
|
||||||
};
|
|
||||||
sponsorBlockSelfPromo = {
|
|
||||||
color = "CatppuccinMochaYellow";
|
|
||||||
skip = "showInSeekBar";
|
|
||||||
};
|
|
||||||
sponsorBlockInteraction = {
|
|
||||||
color = "CatppuccinMochaPink";
|
|
||||||
skip = "showInSeekBar";
|
|
||||||
};
|
|
||||||
sponsorBlockIntro = {
|
|
||||||
color = "CatppuccinMochaSapphire";
|
|
||||||
skip = "doNothing";
|
|
||||||
};
|
|
||||||
sponsorBlockOutro = {
|
|
||||||
color = "CatppuccinMochaBlue";
|
|
||||||
skip = "doNothing";
|
|
||||||
};
|
|
||||||
sponsorBlockRecap = {
|
|
||||||
color = "CatppuccinMochaMauve";
|
|
||||||
skip = "doNothing";
|
|
||||||
};
|
|
||||||
sponsorBlockMusicOffTopic = {
|
|
||||||
color = "CatppuccinMochaFlamingo";
|
|
||||||
skip = "doNothing";
|
|
||||||
};
|
|
||||||
sponsorBlockFiller = {
|
|
||||||
color = "CatppuccinMochaMauve";
|
|
||||||
skip = "doNothing";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
let
|
|
||||||
theme = import ../theme.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
gtk.enable = true;
|
|
||||||
catppuccin.gtk = {
|
|
||||||
enable = true;
|
|
||||||
flavor = theme.flavor;
|
|
||||||
icon.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,103 +0,0 @@
|
|||||||
let
|
|
||||||
common = import ../../common.nix;
|
|
||||||
app = common.default;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
# TODO binds to move focused window
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
"$mainMod" = "SUPER";
|
|
||||||
"$shiftMod" = "$mainMod SHIFT";
|
|
||||||
"$ctrlMod" = "$mainMod CTRL";
|
|
||||||
"$menu" = "rofi -show drun";
|
|
||||||
|
|
||||||
bind = [
|
|
||||||
"$mainMod, Q, exec, ${app.terminal}"
|
|
||||||
"$mainMod, C, killactive,"
|
|
||||||
"$shiftMod, M, exit,"
|
|
||||||
"$mainMod, E, exec, ${app.fileManager}"
|
|
||||||
"$mainMod, V, togglefloating,"
|
|
||||||
"$mainMod, R, exec, $menu"
|
|
||||||
"$mainMod, P, pseudo," # dwindle
|
|
||||||
"$mainMod, J, togglesplit," # dwindle
|
|
||||||
"$mainMod, B, exec, ${app.browser}"
|
|
||||||
"$mainMod, L, exec, ${app.lockScreen}"
|
|
||||||
"$mainMod, K, exec, [float] ${app.calculator}"
|
|
||||||
"$mainMod, ESCAPE, exec, hyprpanel t dashboardmenu"
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
"$mainMod, left, movefocus, l"
|
|
||||||
"$mainMod, right, movefocus, r"
|
|
||||||
"$mainMod, up, movefocus, u"
|
|
||||||
"$mainMod, down, movefocus, d"
|
|
||||||
|
|
||||||
# Move window with ctrl + mainMod + arrow keys
|
|
||||||
"$ctrlMod, left, movewindow, l"
|
|
||||||
"$ctrlMod, right, movewindow, r"
|
|
||||||
"$ctrlMod, up, movewindow, u"
|
|
||||||
"$ctrlMod, down, movewindow, d"
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
"$mainMod, 1, workspace, 1"
|
|
||||||
"$mainMod, 2, workspace, 2"
|
|
||||||
"$mainMod, 3, workspace, 3"
|
|
||||||
"$mainMod, 4, workspace, 4"
|
|
||||||
"$mainMod, 5, workspace, 5"
|
|
||||||
"$mainMod, 6, workspace, 6"
|
|
||||||
"$mainMod, 7, workspace, 7"
|
|
||||||
"$mainMod, 8, workspace, 8"
|
|
||||||
"$mainMod, 9, workspace, 9"
|
|
||||||
"$mainMod, 0, workspace, 10"
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
"$shiftMod, 1, movetoworkspace, 1"
|
|
||||||
"$shiftMod, 2, movetoworkspace, 2"
|
|
||||||
"$shiftMod, 3, movetoworkspace, 3"
|
|
||||||
"$shiftMod, 4, movetoworkspace, 4"
|
|
||||||
"$shiftMod, 5, movetoworkspace, 5"
|
|
||||||
"$shiftMod, 6, movetoworkspace, 6"
|
|
||||||
"$shiftMod, 7, movetoworkspace, 7"
|
|
||||||
"$shiftMod, 8, movetoworkspace, 8"
|
|
||||||
"$shiftMod, 9, movetoworkspace, 9"
|
|
||||||
"$shiftMod, 0, movetoworkspace, 10"
|
|
||||||
|
|
||||||
# Example special workspace (scratchpad)
|
|
||||||
"$mainMod, S, togglespecialworkspace, magic"
|
|
||||||
"$shiftMod, S, movetoworkspace, special:magic"
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
"$mainMod, mouse_down, workspace, e+1"
|
|
||||||
"$mainMod, mouse_up, workspace, e-1"
|
|
||||||
];
|
|
||||||
|
|
||||||
binde = [
|
|
||||||
# Resize the focused window
|
|
||||||
"$shiftMod, right, resizeactive, 20 0"
|
|
||||||
"$shiftMod, left, resizeactive, -20 0"
|
|
||||||
"$shiftMod, up, resizeactive, 0 -20"
|
|
||||||
"$shiftMod, down, resizeactive, 0 20"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindm = [
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
"$mainMod, mouse:272, movewindow"
|
|
||||||
"$mainMod, mouse:273, resizewindow"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindl = [
|
|
||||||
", XF86AudioNext, exec, playerctl next"
|
|
||||||
", XF86AudioPause, exec, playerctl play-pause"
|
|
||||||
", XF86AudioPlay, exec, playerctl play-pause"
|
|
||||||
", XF86AudioPrev, exec, playerctl previous"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindel = [
|
|
||||||
# Laptop multimedia keys for volume and LCD brightness
|
|
||||||
",XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
|
||||||
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
|
||||||
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
||||||
",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
|
||||||
",XF86MonBrightnessUp, exec, brightnessctl s 10%+"
|
|
||||||
",XF86MonBrightnessDown, exec, brightnessctl s 10%-"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
# Home configurations for Hyprland. For system configs, see ./modules/hyprland
|
|
||||||
{ outputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./binds.nix
|
|
||||||
./hypridle
|
|
||||||
./hyprlock
|
|
||||||
./hyprpanel
|
|
||||||
./hyprpaper.nix
|
|
||||||
./hyprshot.nix
|
|
||||||
./settings.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Adds pkgs.unstable in order to fetch packages from unstable repositories
|
|
||||||
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
systemd.variables = [ "--all" ]; # Import environment into systemd
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,38 +0,0 @@
|
|||||||
let
|
|
||||||
# Time in seconds
|
|
||||||
lockAfter = 1200;
|
|
||||||
screenOffAfter = 1500;
|
|
||||||
suspendAfter = 7200;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
services.hypridle = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
general = {
|
|
||||||
before_sleep_cmd = "loginctl lock-session";
|
|
||||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
|
||||||
lock_cmd = "pidof hyprlock || hyprlock"; # Avoid running multiple instances of hyprlock
|
|
||||||
};
|
|
||||||
|
|
||||||
listener = [
|
|
||||||
# Lock
|
|
||||||
{
|
|
||||||
timeout = lockAfter;
|
|
||||||
on-timeout = "loginctl lock-session";
|
|
||||||
}
|
|
||||||
# Turn off screens
|
|
||||||
{
|
|
||||||
timeout = screenOffAfter;
|
|
||||||
on-timeout = "hyprctl dispatch dpms off";
|
|
||||||
on-resume = "hyprctl dispatch dpms on";
|
|
||||||
}
|
|
||||||
# Suspend
|
|
||||||
{
|
|
||||||
timeout = suspendAfter;
|
|
||||||
on-timeout = "systemctl suspend"; # suspend pc
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = [ "hypridle" ];
|
|
||||||
}
|
|
@ -1,89 +0,0 @@
|
|||||||
{ lib, ... }:
|
|
||||||
let
|
|
||||||
theme = import ../../../theme.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
programs.hyprlock = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
"$font" = "${theme.nerdFont} Nerd Font";
|
|
||||||
|
|
||||||
background = [
|
|
||||||
{
|
|
||||||
path = "${../../../wallpapers/catppuccin_page_curl.png}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
# GENERAL
|
|
||||||
general = {
|
|
||||||
disable_loading_bar = true;
|
|
||||||
hide_cursor = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# LAYOUT
|
|
||||||
label = [
|
|
||||||
{
|
|
||||||
text = "$LAYOUT";
|
|
||||||
color = "${theme.textRgb}";
|
|
||||||
font_size = 25;
|
|
||||||
font_family = "$font";
|
|
||||||
position = "30, -30";
|
|
||||||
halign = "left";
|
|
||||||
valign = "top";
|
|
||||||
}
|
|
||||||
# TIME
|
|
||||||
{
|
|
||||||
text = "$TIME";
|
|
||||||
color = "${theme.textRgb}";
|
|
||||||
font_size = 90;
|
|
||||||
font_family = "$font";
|
|
||||||
position = "-30, 0";
|
|
||||||
halign = "right";
|
|
||||||
valign = "top";
|
|
||||||
}
|
|
||||||
# DATE
|
|
||||||
{
|
|
||||||
text = "cmd[update:43200000] date +\"%A, %d %B %Y\"";
|
|
||||||
color = "${theme.textRgb}";
|
|
||||||
font_size = 25;
|
|
||||||
font_family = "$font";
|
|
||||||
position = "-30, -150";
|
|
||||||
halign = "right";
|
|
||||||
valign = "top";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
# USER AVATAR
|
|
||||||
image = {
|
|
||||||
path = "${../../face.png}";
|
|
||||||
size = 100;
|
|
||||||
border_color = "${theme.blueRgb}";
|
|
||||||
position = "0, 75";
|
|
||||||
halign = "center";
|
|
||||||
valign = "center";
|
|
||||||
};
|
|
||||||
|
|
||||||
# INPUT FIELD
|
|
||||||
input-field = {
|
|
||||||
size = "300, 60";
|
|
||||||
outline_thickness = 4;
|
|
||||||
dots_size = 0.2;
|
|
||||||
dots_spacing = 0.2;
|
|
||||||
dots_center = true;
|
|
||||||
outer_color = lib.mkDefault "${theme.blueRgb}";
|
|
||||||
inner_color = lib.mkDefault "${theme.surface0Rgb}";
|
|
||||||
font_color = lib.mkDefault "${theme.textRgb}";
|
|
||||||
fade_on_empty = false;
|
|
||||||
placeholder_text = "<span foreground=\"##${theme.textAlpha}\"> Logged in as <span foreground=\"##${theme.blueAlpha}\">$USER</span></span>";
|
|
||||||
hide_input = false;
|
|
||||||
check_color = lib.mkDefault "${theme.blueRgb}";
|
|
||||||
fail_color = lib.mkDefault "${theme.redRgb}";
|
|
||||||
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
|
|
||||||
capslock_color = lib.mkDefault "${theme.yellowRgb}";
|
|
||||||
position = "0, -47"; # TODO change to use % at 25.05
|
|
||||||
halign = "center";
|
|
||||||
valign = "center";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,123 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
common = import ../../../common.nix;
|
|
||||||
theme = import ../../../theme.nix;
|
|
||||||
loader = import ../../secretsLoader.nix lib;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
|
|
||||||
|
|
||||||
programs.hyprpanel = {
|
|
||||||
enable = true;
|
|
||||||
# Add hyprpanel to the Hyprland config 'exec-once'.
|
|
||||||
hyprland.enable = true;
|
|
||||||
# Fix the overwrite issue with HyprPanel.
|
|
||||||
overwrite.enable = true;
|
|
||||||
|
|
||||||
# Import a theme from './themes/*.json'.
|
|
||||||
theme = "";
|
|
||||||
|
|
||||||
# Override the final config with an arbitrary set.
|
|
||||||
# Useful for overriding colors in your selected theme.
|
|
||||||
# Default: {}
|
|
||||||
override = {
|
|
||||||
theme.bar.menus.text = "#123ABC";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure bar layouts for monitors.
|
|
||||||
layout = {
|
|
||||||
"bar.layouts" = {
|
|
||||||
"*" = {
|
|
||||||
left = [
|
|
||||||
"dashboard"
|
|
||||||
"workspaces"
|
|
||||||
"windowtitle"
|
|
||||||
];
|
|
||||||
middle = [ "media" ];
|
|
||||||
right = [
|
|
||||||
"kbinput"
|
|
||||||
"volume"
|
|
||||||
"network"
|
|
||||||
"systray"
|
|
||||||
"clock"
|
|
||||||
"battery"
|
|
||||||
"notifications"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure and theme almost all options from the GUI.
|
|
||||||
# Options that require '{}' or '[]' are not yet implemented,
|
|
||||||
# except for the layout above.
|
|
||||||
# See 'https://hyprpanel.com/configuration/settings.html'.
|
|
||||||
# Default: <same as gui>
|
|
||||||
settings = {
|
|
||||||
bar = {
|
|
||||||
clock.format = "%a %b %d %H:%M";
|
|
||||||
customModules.kbLayout.leftClick = "hyprctl switchxkblayout keychron-keychron-k8-pro next";
|
|
||||||
launcher.autoDetectIcon = true;
|
|
||||||
network.label = false;
|
|
||||||
volume = {
|
|
||||||
scrollDown = "${pkgs.hyprpanel}/bin/hyprpanel 'vol -1'";
|
|
||||||
scrollUp = "${pkgs.hyprpanel}/bin/hyprpanel 'vol +1'";
|
|
||||||
};
|
|
||||||
workspaces = {
|
|
||||||
show_icons = false;
|
|
||||||
show_numbered = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
menus = {
|
|
||||||
clock = {
|
|
||||||
time = {
|
|
||||||
military = true;
|
|
||||||
hideSeconds = true;
|
|
||||||
};
|
|
||||||
weather = {
|
|
||||||
unit = "metric";
|
|
||||||
location = "Bergen, Norway";
|
|
||||||
key = loader.loadSecret ../../secrets/weather-api-key;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
dashboard = {
|
|
||||||
directories.enabled = false;
|
|
||||||
powermenu.avatar.image = "${../../face.png}";
|
|
||||||
shortcuts.left = {
|
|
||||||
shortcut1 = {
|
|
||||||
command = common.default.browser;
|
|
||||||
icon = ""; # TODO replace with Zen icon
|
|
||||||
tooltip = "Zen";
|
|
||||||
};
|
|
||||||
shortcut2 = {
|
|
||||||
command = "spotify";
|
|
||||||
icon = "";
|
|
||||||
tooltip = "Spotify";
|
|
||||||
};
|
|
||||||
## shortcut3 === discord
|
|
||||||
## shortcut4 === rofi -show drun
|
|
||||||
};
|
|
||||||
stats.enable_gpu = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
scalingPriority = "hyprland";
|
|
||||||
|
|
||||||
theme = {
|
|
||||||
bar.transparent = true;
|
|
||||||
font = {
|
|
||||||
name = "${theme.nerdFont} NF";
|
|
||||||
size = "16px";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
wallpaper.enable = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
# Wallpapers
|
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
common = import ../../common.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
hyprpaper
|
|
||||||
];
|
|
||||||
|
|
||||||
services.hyprpaper = {
|
|
||||||
enable = true;
|
|
||||||
settings =
|
|
||||||
let
|
|
||||||
wallpaperDir = ../../wallpapers;
|
|
||||||
monitor1 = "${wallpaperDir}/nixos_waves.png";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
ipc = "on";
|
|
||||||
splash = false;
|
|
||||||
splash_offset = 2.0;
|
|
||||||
|
|
||||||
preload = [
|
|
||||||
monitor1
|
|
||||||
];
|
|
||||||
|
|
||||||
wallpaper = [
|
|
||||||
"${common.monitor1},${monitor1}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
let
|
|
||||||
common = import ../../common.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
"$mainMod" = "SUPER";
|
|
||||||
"$shiftMod" = "$mainMod SHIFT";
|
|
||||||
|
|
||||||
env = [
|
|
||||||
"HYPRSHOT_DIR,${common.dir.pictures}/screenshots" # Store screenshots here
|
|
||||||
];
|
|
||||||
|
|
||||||
bind = [
|
|
||||||
"$mainMod, PRINT, exec, hyprshot -m window" # Window
|
|
||||||
", PRINT, exec, hyprshot -m output" # Monitor
|
|
||||||
"$shiftMod, PRINT, exec, hyprshot -m region" # Region
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,135 +0,0 @@
|
|||||||
{ lib, ... }:
|
|
||||||
let
|
|
||||||
common = import ../../common.nix;
|
|
||||||
theme = import ../../theme.nix;
|
|
||||||
app = common.default;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
monitor = [
|
|
||||||
"${common.monitor1}, 1920x1080@60.05, 0x0, 1"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Autostart
|
|
||||||
exec-once = [
|
|
||||||
app.browser
|
|
||||||
app.terminal
|
|
||||||
"systemctl --user start hyprpolkitagent"
|
|
||||||
"hyprsunset -t 5000" # Set blue light filter
|
|
||||||
];
|
|
||||||
|
|
||||||
env = [
|
|
||||||
"ELECTRON_OZONE_PLATFORM_HINT,auto" # Tell Electron apps to use Wayland
|
|
||||||
];
|
|
||||||
|
|
||||||
general = {
|
|
||||||
gaps_in = 5;
|
|
||||||
gaps_out = 20;
|
|
||||||
border_size = 2;
|
|
||||||
"col.active_border" = lib.mkDefault "${theme.mauveRgb} ${theme.tealRgb} 45deg";
|
|
||||||
"col.inactive_border" = lib.mkDefault "rgba(${theme.surface2Alpha}aa)";
|
|
||||||
resize_on_border = true;
|
|
||||||
allow_tearing = false;
|
|
||||||
layout = "dwindle";
|
|
||||||
};
|
|
||||||
|
|
||||||
decoration = {
|
|
||||||
rounding = 10;
|
|
||||||
|
|
||||||
# Change transparency of focused and unfocused windows
|
|
||||||
active_opacity = 1.0;
|
|
||||||
inactive_opacity = 1.0;
|
|
||||||
|
|
||||||
shadow = {
|
|
||||||
enabled = true;
|
|
||||||
range = 4;
|
|
||||||
render_power = 3;
|
|
||||||
color = lib.mkDefault theme.baseRgb;
|
|
||||||
};
|
|
||||||
|
|
||||||
blur = {
|
|
||||||
enabled = true;
|
|
||||||
size = 3;
|
|
||||||
passes = 1;
|
|
||||||
|
|
||||||
vibrancy = 0.1696;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
animations = {
|
|
||||||
enabled = "yes, please :)";
|
|
||||||
|
|
||||||
bezier = [
|
|
||||||
"easeOutQuint,0.23,1,0.32,1"
|
|
||||||
"easeInOutCubic,0.65,0.05,0.36,1"
|
|
||||||
"linear,0,0,1,1"
|
|
||||||
"almostLinear,0.5,0.5,0.75,1.0"
|
|
||||||
"quick,0.15,0,0.1,1"
|
|
||||||
];
|
|
||||||
|
|
||||||
animation = [
|
|
||||||
"global, 1, 10, default"
|
|
||||||
"border, 1, 5.39, easeOutQuint"
|
|
||||||
"windows, 1, 4.79, easeOutQuint"
|
|
||||||
"windowsIn, 1, 4.1, easeOutQuint, popin 87%"
|
|
||||||
"windowsOut, 1, 1.49, linear, popin 87%"
|
|
||||||
"fadeIn, 1, 1.73, almostLinear"
|
|
||||||
"fadeOut, 1, 1.46, almostLinear"
|
|
||||||
"fade, 1, 3.03, quick"
|
|
||||||
"layers, 1, 3.81, easeOutQuint"
|
|
||||||
"layersIn, 1, 4, easeOutQuint, fade"
|
|
||||||
"layersOut, 1, 1.5, linear, fade"
|
|
||||||
"fadeLayersIn, 1, 1.79, almostLinear"
|
|
||||||
"fadeLayersOut, 1, 1.39, almostLinear"
|
|
||||||
"workspaces, 1, 1.94, almostLinear, fade"
|
|
||||||
"workspacesIn, 1, 1.21, almostLinear, fade"
|
|
||||||
"workspacesOut, 1, 1.94, almostLinear, fade"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
dwindle = {
|
|
||||||
pseudotile = true; # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = true; # You probably want this
|
|
||||||
};
|
|
||||||
|
|
||||||
master.new_status = "master";
|
|
||||||
|
|
||||||
misc = {
|
|
||||||
force_default_wallpaper = 0;
|
|
||||||
disable_hyprland_logo = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
debug.disable_logs = false;
|
|
||||||
|
|
||||||
input = {
|
|
||||||
kb_layout = common.keymaps.layout;
|
|
||||||
kb_options = common.keymaps.options;
|
|
||||||
follow_mouse = 1;
|
|
||||||
sensitivity = 0.4; # -1.0 - 1.0, 0 means no modification.
|
|
||||||
touchpad.natural_scroll = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
gestures = {
|
|
||||||
workspace_swipe = true;
|
|
||||||
workspace_swipe_distance = 150;
|
|
||||||
workspace_swipe_min_speed_to_force = 0;
|
|
||||||
workspace_swipe_cancel_ratio = 0.5;
|
|
||||||
};
|
|
||||||
|
|
||||||
device = {
|
|
||||||
name = "logitech-g502-hero-gaming-mouse";
|
|
||||||
sensitivity = -0.10;
|
|
||||||
};
|
|
||||||
|
|
||||||
windowrulev2 = [
|
|
||||||
# Ignore maximize requests from apps
|
|
||||||
"suppressevent maximize, class:.*"
|
|
||||||
# Fix some dragging issues with XWayland
|
|
||||||
"nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0"
|
|
||||||
# Avoid locking in fullscreen
|
|
||||||
"idleinhibit fullscreen, class:^(*)$"
|
|
||||||
"idleinhibit fullscreen, title:^(*)$"
|
|
||||||
"idleinhibit fullscreen, fullscreen:1"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
let
|
|
||||||
common = import ../common.nix;
|
|
||||||
theme = import ../theme.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
catppuccin.kitty = {
|
|
||||||
enable = true;
|
|
||||||
flavor = theme.flavor;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
# Transfer shell config to target device
|
|
||||||
fish.shellAliases.ssh = "kitty +kitten ssh";
|
|
||||||
kitty = {
|
|
||||||
enable = common.default.terminal == "kitty";
|
|
||||||
font.name = theme.nerdFont;
|
|
||||||
settings = {
|
|
||||||
background_blur = 5;
|
|
||||||
background_opacity = 0.8;
|
|
||||||
confirm_os_window_close = 0;
|
|
||||||
window_padding_width = 10;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,29 +0,0 @@
|
|||||||
{
|
|
||||||
catppuccin.mpv =
|
|
||||||
let
|
|
||||||
theme = import ../theme.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
enable = true;
|
|
||||||
flavor = theme.flavor;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
fish.shellAliases.mpvl = "mpv --profile=loop";
|
|
||||||
mpv = {
|
|
||||||
enable = true;
|
|
||||||
config = {
|
|
||||||
hwdec = "auto-safe";
|
|
||||||
vo = "gpu";
|
|
||||||
profile = "gpu-hq";
|
|
||||||
gpu-context = "wayland";
|
|
||||||
};
|
|
||||||
profiles = {
|
|
||||||
loop = {
|
|
||||||
loop-playlist = "inf";
|
|
||||||
loop-file = "inf";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
services.nextcloud-client = {
|
|
||||||
enable = true;
|
|
||||||
startInBackground = true;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,35 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [ inputs.spicetify-nix.homeManagerModules.default ];
|
|
||||||
programs.spicetify =
|
|
||||||
let
|
|
||||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
|
|
||||||
theme = import ../theme.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
enabledExtensions = with spicePkgs.extensions; [
|
|
||||||
adblock
|
|
||||||
fullAppDisplay
|
|
||||||
hidePodcasts
|
|
||||||
shuffle # shuffle+ (special characters are sanitized out of extension names)
|
|
||||||
];
|
|
||||||
enabledCustomApps = with spicePkgs.apps; [
|
|
||||||
newReleases
|
|
||||||
ncsVisualizer
|
|
||||||
];
|
|
||||||
enabledSnippets = with spicePkgs.snippets; [
|
|
||||||
pointer
|
|
||||||
];
|
|
||||||
|
|
||||||
theme = lib.mkForce spicePkgs.themes.catppuccin;
|
|
||||||
colorScheme = lib.mkForce theme.flavor;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,327 +0,0 @@
|
|||||||
{ lib, ... }:
|
|
||||||
let
|
|
||||||
theme = import ../../theme.nix;
|
|
||||||
batTheme = ".config/yazi/catppuccin-${theme.flavor}.tmTheme";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
home.file.${batTheme}.source = ./catppuccin-mocha.tmTheme;
|
|
||||||
|
|
||||||
programs.yazi = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
manager = {
|
|
||||||
ratio = [
|
|
||||||
2
|
|
||||||
4
|
|
||||||
2
|
|
||||||
];
|
|
||||||
sort_by = "natural";
|
|
||||||
sort_sensitive = true;
|
|
||||||
sort_reverse = false;
|
|
||||||
sort_dir_first = true;
|
|
||||||
linemode = "none";
|
|
||||||
show_hidden = true;
|
|
||||||
show_symlink = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
preview = {
|
|
||||||
image_filter = "lanczos3";
|
|
||||||
image_quality = 90;
|
|
||||||
tab_size = 1;
|
|
||||||
max_width = 600;
|
|
||||||
max_height = 900;
|
|
||||||
cache_dir = "";
|
|
||||||
ueberzug_scale = 1;
|
|
||||||
ueberzug_offset = [
|
|
||||||
0
|
|
||||||
0
|
|
||||||
0
|
|
||||||
0
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
tasks = {
|
|
||||||
micro_workers = 5;
|
|
||||||
macro_workers = 10;
|
|
||||||
bizarre_retry = 5;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
theme = lib.mkForce {
|
|
||||||
manager = {
|
|
||||||
cwd = {
|
|
||||||
fg = "#${theme.tealAlpha}";
|
|
||||||
};
|
|
||||||
|
|
||||||
hovered = {
|
|
||||||
fg = "#${theme.baseAlpha}";
|
|
||||||
bg = "#${theme.blueAlpha}";
|
|
||||||
};
|
|
||||||
preview_hovered = {
|
|
||||||
fg = "#${theme.baseAlpha}";
|
|
||||||
bg = "#${theme.textAlpha}";
|
|
||||||
};
|
|
||||||
|
|
||||||
find_keyword = {
|
|
||||||
fg = "#${theme.yellowAlpha}";
|
|
||||||
italic = true;
|
|
||||||
};
|
|
||||||
find_position = {
|
|
||||||
fg = "#${theme.pinkAlpha}";
|
|
||||||
bg = "reset";
|
|
||||||
italic = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
marker_copied = {
|
|
||||||
fg = "#${theme.greenAlpha}";
|
|
||||||
bg = "#${theme.greenAlpha}";
|
|
||||||
};
|
|
||||||
marker_cut = {
|
|
||||||
fg = "#${theme.redAlpha}";
|
|
||||||
bg = "#${theme.redAlpha}";
|
|
||||||
};
|
|
||||||
marker_marked = {
|
|
||||||
fg = "#${theme.tealAlpha}";
|
|
||||||
bg = "#${theme.tealAlpha}";
|
|
||||||
};
|
|
||||||
marker_selected = {
|
|
||||||
fg = "#${theme.blueAlpha}";
|
|
||||||
bg = "#${theme.blueAlpha}";
|
|
||||||
};
|
|
||||||
|
|
||||||
tab_active = {
|
|
||||||
fg = "#${theme.baseAlpha}";
|
|
||||||
bg = "#${theme.textAlpha}";
|
|
||||||
};
|
|
||||||
tab_inactive = {
|
|
||||||
fg = "#${theme.textAlpha}";
|
|
||||||
bg = "#${theme.surface1Alpha}";
|
|
||||||
};
|
|
||||||
tab_width = 1;
|
|
||||||
|
|
||||||
count_copied = {
|
|
||||||
fg = "#${theme.baseAlpha}";
|
|
||||||
bg = "#${theme.greenAlpha}";
|
|
||||||
};
|
|
||||||
count_cut = {
|
|
||||||
fg = "#${theme.baseAlpha}";
|
|
||||||
bg = "#${theme.redAlpha}";
|
|
||||||
};
|
|
||||||
count_selected = {
|
|
||||||
fg = "#${theme.baseAlpha}";
|
|
||||||
bg = "#${theme.blueAlpha}";
|
|
||||||
};
|
|
||||||
|
|
||||||
border_symbol = "│";
|
|
||||||
border_style.fg = "#${theme.overlay1Alpha}";
|
|
||||||
|
|
||||||
syntect_theme = "~/${batTheme}";
|
|
||||||
};
|
|
||||||
|
|
||||||
mode = {
|
|
||||||
normal_main = {
|
|
||||||
fg = "#${theme.baseAlpha}";
|
|
||||||
bg = "#${theme.blueAlpha}";
|
|
||||||
bold = true;
|
|
||||||
};
|
|
||||||
normal_alt = {
|
|
||||||
fg = "#${theme.blueAlpha}";
|
|
||||||
bg = "#${theme.surface0Alpha}";
|
|
||||||
};
|
|
||||||
|
|
||||||
select_main = {
|
|
||||||
fg = "#${theme.baseAlpha}";
|
|
||||||
bg = "#${theme.greenAlpha}";
|
|
||||||
bold = true;
|
|
||||||
};
|
|
||||||
select_alt = {
|
|
||||||
fg = "#${theme.greenAlpha}";
|
|
||||||
bg = "#${theme.surface0Alpha}";
|
|
||||||
};
|
|
||||||
|
|
||||||
unset_main = {
|
|
||||||
fg = "#${theme.baseAlpha}";
|
|
||||||
bg = "#${theme.flamingoAlpha}";
|
|
||||||
bold = true;
|
|
||||||
};
|
|
||||||
unset_alt = {
|
|
||||||
fg = "#${theme.flamingoAlpha}";
|
|
||||||
bg = "#${theme.surface0Alpha}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
status = {
|
|
||||||
separator_open = "";
|
|
||||||
separator_close = "";
|
|
||||||
|
|
||||||
progress_label = {
|
|
||||||
fg = "#ffffff";
|
|
||||||
bold = true;
|
|
||||||
};
|
|
||||||
progress_normal = {
|
|
||||||
fg = "#${theme.blueAlpha}";
|
|
||||||
bg = "#${theme.surface1Alpha}";
|
|
||||||
};
|
|
||||||
progress_error = {
|
|
||||||
fg = "#${theme.redAlpha}";
|
|
||||||
bg = "#${theme.surface1Alpha}";
|
|
||||||
};
|
|
||||||
|
|
||||||
perm_type = {
|
|
||||||
fg = "#${theme.blueAlpha}";
|
|
||||||
};
|
|
||||||
perm_read = {
|
|
||||||
fg = "#${theme.yellowAlpha}";
|
|
||||||
};
|
|
||||||
perm_write = {
|
|
||||||
fg = "#${theme.redAlpha}";
|
|
||||||
};
|
|
||||||
perm_exec = {
|
|
||||||
fg = "#${theme.greenAlpha}";
|
|
||||||
};
|
|
||||||
perm_sep = {
|
|
||||||
fg = "#${theme.overlay1Alpha}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
input = {
|
|
||||||
border = {
|
|
||||||
fg = "#${theme.blueAlpha}";
|
|
||||||
};
|
|
||||||
title = { };
|
|
||||||
value = { };
|
|
||||||
selected.reversed = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
pick = {
|
|
||||||
border = {
|
|
||||||
fg = "#${theme.blueAlpha}";
|
|
||||||
};
|
|
||||||
active = {
|
|
||||||
fg = "#${theme.pinkAlpha}";
|
|
||||||
};
|
|
||||||
inactive = { };
|
|
||||||
};
|
|
||||||
|
|
||||||
confirm = {
|
|
||||||
border = {
|
|
||||||
fg = "#${theme.blueAlpha}";
|
|
||||||
};
|
|
||||||
title = {
|
|
||||||
fg = "#${theme.blueAlpha}";
|
|
||||||
};
|
|
||||||
content = { };
|
|
||||||
list = { };
|
|
||||||
btn_yes = {
|
|
||||||
reversed = true;
|
|
||||||
};
|
|
||||||
btn_no = { };
|
|
||||||
};
|
|
||||||
|
|
||||||
completion = {
|
|
||||||
border = {
|
|
||||||
fg = "#${theme.blueAlpha}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
tasks = {
|
|
||||||
border = {
|
|
||||||
fg = "#${theme.blueAlpha}";
|
|
||||||
};
|
|
||||||
title = { };
|
|
||||||
hovered = {
|
|
||||||
underline = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
which = {
|
|
||||||
mask = {
|
|
||||||
bg = "#${theme.surface0Alpha}";
|
|
||||||
};
|
|
||||||
cand = {
|
|
||||||
fg = "#${theme.tealAlpha}";
|
|
||||||
};
|
|
||||||
rest = {
|
|
||||||
fg = "#9399b2";
|
|
||||||
};
|
|
||||||
desc = {
|
|
||||||
fg = "#${theme.pinkAlpha}";
|
|
||||||
};
|
|
||||||
separator = " ";
|
|
||||||
separator_style = {
|
|
||||||
fg = "#${theme.surface2Alpha}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
help = {
|
|
||||||
on = {
|
|
||||||
fg = "#${theme.tealAlpha}";
|
|
||||||
};
|
|
||||||
run = {
|
|
||||||
fg = "#${theme.pinkAlpha}";
|
|
||||||
};
|
|
||||||
desc = {
|
|
||||||
fg = "#9399b2";
|
|
||||||
};
|
|
||||||
hovered = {
|
|
||||||
bg = "#${theme.surface2Alpha}";
|
|
||||||
bold = true;
|
|
||||||
};
|
|
||||||
footer = {
|
|
||||||
fg = "#${theme.textAlpha}";
|
|
||||||
bg = "#${theme.surface1Alpha}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
notify = {
|
|
||||||
title_info = {
|
|
||||||
fg = "#${theme.tealAlpha}";
|
|
||||||
};
|
|
||||||
title_warn = {
|
|
||||||
fg = "#${theme.yellowAlpha}";
|
|
||||||
};
|
|
||||||
title_error = {
|
|
||||||
fg = "#${theme.redAlpha}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
filetype = {
|
|
||||||
rules = [
|
|
||||||
# Media
|
|
||||||
{
|
|
||||||
mime = "image/*";
|
|
||||||
fg = "#${theme.tealAlpha}";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mime = "{audio;video}/*";
|
|
||||||
fg = "#${theme.yellowAlpha}";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Archives
|
|
||||||
{
|
|
||||||
mime = "application/*zip";
|
|
||||||
fg = "#${theme.pinkAlpha}";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mime = "application/x-{tar;bzip*;7z-compressed;xz;rar}";
|
|
||||||
fg = "#${theme.pinkAlpha}";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Documents
|
|
||||||
{
|
|
||||||
mime = "application/{pdf;doc;rtf}";
|
|
||||||
fg = "#${theme.greenAlpha}";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Fallback
|
|
||||||
{
|
|
||||||
name = "*";
|
|
||||||
fg = "#${theme.textAlpha}";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "*/";
|
|
||||||
fg = "#${theme.blueAlpha}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
icon = import ./icons.nix;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,113 +0,0 @@
|
|||||||
/* Catppuccin Mocha Blue userChrome.css*/
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
:root {
|
|
||||||
--zen-colors-primary: #313244 !important;
|
|
||||||
--zen-primary-color: #89b4fa !important;
|
|
||||||
--zen-colors-secondary: #313244 !important;
|
|
||||||
--zen-colors-tertiary: #181825 !important;
|
|
||||||
--zen-colors-border: #89b4fa !important;
|
|
||||||
--toolbarbutton-icon-fill: #89b4fa !important;
|
|
||||||
--lwt-text-color: #cdd6f4 !important;
|
|
||||||
--toolbar-field-color: #cdd6f4 !important;
|
|
||||||
--tab-selected-textcolor: rgb(171, 197, 247) !important;
|
|
||||||
--toolbar-field-focus-color: #cdd6f4 !important;
|
|
||||||
--toolbar-color: #cdd6f4 !important;
|
|
||||||
--newtab-text-primary-color: #cdd6f4 !important;
|
|
||||||
--arrowpanel-color: #cdd6f4 !important;
|
|
||||||
--arrowpanel-background: #1e1e2e !important;
|
|
||||||
--sidebar-text-color: #cdd6f4 !important;
|
|
||||||
--lwt-sidebar-text-color: #cdd6f4 !important;
|
|
||||||
--lwt-sidebar-background-color: #11111b !important;
|
|
||||||
--toolbar-bgcolor: #313244 !important;
|
|
||||||
--newtab-background-color: #1e1e2e !important;
|
|
||||||
--zen-themed-toolbar-bg: #181825 !important;
|
|
||||||
--zen-main-browser-background: #181825 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#permissions-granted-icon {
|
|
||||||
color: #181825 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-placesTree {
|
|
||||||
background-color: #1e1e2e !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#zen-workspaces-button {
|
|
||||||
background-color: #1e1e2e !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#TabsToolbar {
|
|
||||||
background-color: #181825 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#urlbar-background {
|
|
||||||
background-color: #1e1e2e !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content-shortcuts {
|
|
||||||
background-color: #1e1e2e !important;
|
|
||||||
border-color: #89b4fa !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.urlbarView-url {
|
|
||||||
color: #89b4fa !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#zenEditBookmarkPanelFaviconContainer {
|
|
||||||
background: #11111b !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
toolbar .toolbarbutton-1 {
|
|
||||||
&:not([disabled]) {
|
|
||||||
&:is([open], [checked])
|
|
||||||
> :is(
|
|
||||||
.toolbarbutton-icon,
|
|
||||||
.toolbarbutton-text,
|
|
||||||
.toolbarbutton-badge-stack
|
|
||||||
) {
|
|
||||||
fill: #11111b;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-blue {
|
|
||||||
--identity-tab-color: #89b4fa !important;
|
|
||||||
--identity-icon-color: #89b4fa !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-turquoise {
|
|
||||||
--identity-tab-color: #94e2d5 !important;
|
|
||||||
--identity-icon-color: #94e2d5 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-green {
|
|
||||||
--identity-tab-color: #a6e3a1 !important;
|
|
||||||
--identity-icon-color: #a6e3a1 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-yellow {
|
|
||||||
--identity-tab-color: #f9e2af !important;
|
|
||||||
--identity-icon-color: #f9e2af !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-orange {
|
|
||||||
--identity-tab-color: #fab387 !important;
|
|
||||||
--identity-icon-color: #fab387 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-red {
|
|
||||||
--identity-tab-color: #f38ba8 !important;
|
|
||||||
--identity-icon-color: #f38ba8 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-pink {
|
|
||||||
--identity-tab-color: #f5c2e7 !important;
|
|
||||||
--identity-icon-color: #f5c2e7 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-purple {
|
|
||||||
--identity-tab-color: #cba6f7 !important;
|
|
||||||
--identity-icon-color: #cba6f7 !important;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,158 +0,0 @@
|
|||||||
/* Catppuccin Mocha Blue userContent.css*/
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
/* Common variables affecting all pages */
|
|
||||||
@-moz-document url-prefix("about:") {
|
|
||||||
:root {
|
|
||||||
--in-content-page-color: #cdd6f4 !important;
|
|
||||||
--color-accent-primary: #89b4fa !important;
|
|
||||||
--color-accent-primary-hover: rgb(163, 197, 251) !important;
|
|
||||||
--color-accent-primary-active: rgb(138, 153, 250) !important;
|
|
||||||
background-color: #1e1e2e !important;
|
|
||||||
--in-content-page-background: #1e1e2e !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Variables and styles specific to about:newtab and about:home */
|
|
||||||
@-moz-document url("about:newtab"), url("about:home") {
|
|
||||||
:root {
|
|
||||||
--newtab-background-color: #1e1e2e !important;
|
|
||||||
--newtab-background-color-secondary: #313244 !important;
|
|
||||||
--newtab-element-hover-color: #313244 !important;
|
|
||||||
--newtab-text-primary-color: #cdd6f4 !important;
|
|
||||||
--newtab-wordmark-color: #cdd6f4 !important;
|
|
||||||
--newtab-primary-action-background: #89b4fa !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon {
|
|
||||||
color: #89b4fa !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-wrapper .logo-and-wordmark .logo {
|
|
||||||
background:
|
|
||||||
url("zen-logo-mocha.svg"),
|
|
||||||
url("https://raw.githubusercontent.com/IAmJafeth/zen-browser/main/themes/Mocha/Blue/zen-logo-mocha.svg")
|
|
||||||
no-repeat center !important;
|
|
||||||
display: inline-block !important;
|
|
||||||
height: 82px !important;
|
|
||||||
width: 82px !important;
|
|
||||||
background-size: 82px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 609px) {
|
|
||||||
.search-wrapper .logo-and-wordmark .logo {
|
|
||||||
background-size: 64px !important;
|
|
||||||
height: 64px !important;
|
|
||||||
width: 64px !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-outer:is(:hover, :focus, .active):not(.placeholder) .card-title {
|
|
||||||
color: #89b4fa !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-site-outer .search-topsite {
|
|
||||||
background-color: #89b4fa !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.compact-cards .card-outer .card-context .card-context-icon.icon-download {
|
|
||||||
fill: #a6e3a1 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Variables and styles specific to about:preferences */
|
|
||||||
@-moz-document url-prefix("about:preferences") {
|
|
||||||
:root {
|
|
||||||
--zen-colors-tertiary: #181825 !important;
|
|
||||||
--in-content-text-color: #cdd6f4 !important;
|
|
||||||
--link-color: #89b4fa !important;
|
|
||||||
--link-color-hover: rgb(163, 197, 251) !important;
|
|
||||||
--zen-colors-primary: #313244 !important;
|
|
||||||
--in-content-box-background: #313244 !important;
|
|
||||||
--zen-primary-color: #89b4fa !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
groupbox,
|
|
||||||
moz-card {
|
|
||||||
background: #1e1e2e !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
button,
|
|
||||||
groupbox menulist {
|
|
||||||
background: #313244 !important;
|
|
||||||
color: #cdd6f4 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-content {
|
|
||||||
background-color: #11111b !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-blue {
|
|
||||||
--identity-tab-color: #8aadf4 !important;
|
|
||||||
--identity-icon-color: #8aadf4 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-turquoise {
|
|
||||||
--identity-tab-color: #8bd5ca !important;
|
|
||||||
--identity-icon-color: #8bd5ca !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-green {
|
|
||||||
--identity-tab-color: #a6da95 !important;
|
|
||||||
--identity-icon-color: #a6da95 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-yellow {
|
|
||||||
--identity-tab-color: #eed49f !important;
|
|
||||||
--identity-icon-color: #eed49f !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-orange {
|
|
||||||
--identity-tab-color: #f5a97f !important;
|
|
||||||
--identity-icon-color: #f5a97f !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-red {
|
|
||||||
--identity-tab-color: #ed8796 !important;
|
|
||||||
--identity-icon-color: #ed8796 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-pink {
|
|
||||||
--identity-tab-color: #f5bde6 !important;
|
|
||||||
--identity-icon-color: #f5bde6 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identity-color-purple {
|
|
||||||
--identity-tab-color: #c6a0f6 !important;
|
|
||||||
--identity-icon-color: #c6a0f6 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Variables and styles specific to about:addons */
|
|
||||||
@-moz-document url-prefix("about:addons") {
|
|
||||||
:root {
|
|
||||||
--zen-dark-color-mix-base: #181825 !important;
|
|
||||||
--background-color-box: #1e1e2e !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Variables and styles specific to about:protections */
|
|
||||||
@-moz-document url-prefix("about:protections") {
|
|
||||||
:root {
|
|
||||||
--zen-primary-color: #1e1e2e !important;
|
|
||||||
--social-color: #cba6f7 !important;
|
|
||||||
--coockie-color: #89dceb !important;
|
|
||||||
--fingerprinter-color: #f9e2af !important;
|
|
||||||
--cryptominer-color: #b4befe !important;
|
|
||||||
--tracker-color: #a6e3a1 !important;
|
|
||||||
--in-content-primary-button-background-hover: rgb(81, 83, 105) !important;
|
|
||||||
--in-content-primary-button-text-color-hover: #cdd6f4 !important;
|
|
||||||
--in-content-primary-button-background: #45475a !important;
|
|
||||||
--in-content-primary-button-text-color: #cdd6f4 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
background-color: #313244 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<g clip-path="url(#clip0_15_9)">
|
|
||||||
<rect width="1024" height="1024" rx="225" fill="#11111b"/>
|
|
||||||
<circle cx="512" cy="512" r="340" stroke="#cdd6f4" stroke-width="70"/>
|
|
||||||
<circle cx="512" cy="512" r="224.915" stroke="#cdd6f4" stroke-width="51"/>
|
|
||||||
<circle cx="512" cy="512" r="129.018" stroke="#cdd6f4" stroke-width="31"/>
|
|
||||||
</g>
|
|
||||||
<defs>
|
|
||||||
<clipPath id="clip0_15_9">
|
|
||||||
<rect width="1024" height="1024" fill="white"/>
|
|
||||||
</clipPath>
|
|
||||||
</defs>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 568 B |
@ -1,12 +0,0 @@
|
|||||||
{ pkgs, inputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# TODO programatically get default name
|
|
||||||
home = {
|
|
||||||
file.".zen/xdaxqlov.default/chrome" = {
|
|
||||||
source = ./chrome;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
packages = with pkgs; [ inputs.zen-browser.packages.${system}.default ]; # Beta
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
services = {
|
|
||||||
upower.enable = true;
|
|
||||||
power-profiles-daemon.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = [
|
|
||||||
pkgs.bluez
|
|
||||||
];
|
|
||||||
|
|
||||||
hardware.bluetooth = {
|
|
||||||
enable = true;
|
|
||||||
powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
|
||||||
};
|
|
||||||
|
|
||||||
services.blueman.enable = true;
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
./battery.nix
|
|
||||||
./bluetooth.nix
|
|
||||||
./development.nix
|
|
||||||
./fonts.nix
|
|
||||||
./gaming
|
|
||||||
./gnome
|
|
||||||
./hardware
|
|
||||||
./locale.nix
|
|
||||||
./networking.nix
|
|
||||||
./nix-helper.nix
|
|
||||||
./hyprland
|
|
||||||
./sddm.nix
|
|
||||||
./security.nix
|
|
||||||
./shell.nix
|
|
||||||
./qt.nix
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,41 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
# IDEs
|
|
||||||
jetbrains.rust-rover
|
|
||||||
jetbrains.webstorm
|
|
||||||
jetbrains.rider
|
|
||||||
vscodium # TODO set up extensions
|
|
||||||
# Tools
|
|
||||||
dotnet-sdk_9
|
|
||||||
dotnet-aspnetcore_9
|
|
||||||
git
|
|
||||||
rustup
|
|
||||||
nodejs_22
|
|
||||||
pnpm
|
|
||||||
just
|
|
||||||
gcc # Required for C, Rust and others
|
|
||||||
# Language servers
|
|
||||||
nixd
|
|
||||||
nil
|
|
||||||
# Formatters
|
|
||||||
nixfmt-rfc-style
|
|
||||||
treefmt
|
|
||||||
nodePackages.prettier
|
|
||||||
shfmt
|
|
||||||
];
|
|
||||||
|
|
||||||
virtualisation.docker = {
|
|
||||||
enable = true;
|
|
||||||
storageDriver = "btrfs";
|
|
||||||
rootless = {
|
|
||||||
enable = true;
|
|
||||||
setSocketVariable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.ollama = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
font-awesome # Icons
|
|
||||||
];
|
|
||||||
|
|
||||||
fonts =
|
|
||||||
let
|
|
||||||
theme = import ../theme.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
fontconfig.enable = true;
|
|
||||||
packages = with pkgs; [
|
|
||||||
(nerdfonts.override { fonts = [ theme.nerdFont ]; })
|
|
||||||
jetbrains-mono
|
|
||||||
# The line below will replace the lines above in 25.05
|
|
||||||
# nerd-fonts.jetbrains-mono
|
|
||||||
font-awesome
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./steam.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
heroic
|
|
||||||
wine
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
|
||||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
|
||||||
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,28 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./nautilus.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
# adw-gtk3
|
|
||||||
glib
|
|
||||||
adwaita-icon-theme
|
|
||||||
gnomeExtensions.appindicator
|
|
||||||
# gnome-extension-manager
|
|
||||||
loupe
|
|
||||||
gnome-calculator
|
|
||||||
gnome-disk-utility
|
|
||||||
gnome-clocks
|
|
||||||
papers # PDFReader
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.dconf.enable = true; # Required for some gnome applications
|
|
||||||
|
|
||||||
services = {
|
|
||||||
gnome.gnome-keyring.enable = true;
|
|
||||||
gvfs.enable = true; # Gnome Virtual File-system. Required for various things in nautilus
|
|
||||||
udev.packages = with pkgs; [ gnome-settings-daemon ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
let
|
|
||||||
common = import ../../common.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
nautilus
|
|
||||||
ffmpegthumbnailer # Thumbnails
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.nautilus-open-any-terminal = {
|
|
||||||
enable = true;
|
|
||||||
terminal = common.default.terminal;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
gst_all_1.gstreamer
|
|
||||||
gst_all_1.gst-plugins-base
|
|
||||||
gst_all_1.gst-plugins-good
|
|
||||||
gst_all_1.gst-plugins-bad
|
|
||||||
|
|
||||||
wireplumber
|
|
||||||
playerctl # Interaction with audioplayers and browsers
|
|
||||||
pavucontrol # GUI
|
|
||||||
spotify
|
|
||||||
];
|
|
||||||
|
|
||||||
hardware.pulseaudio.enable = false; # Will be moved to services in 25.05
|
|
||||||
|
|
||||||
security.rtkit.enable = true; # Enable RealtimeKit for audio purposes
|
|
||||||
|
|
||||||
services = {
|
|
||||||
pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa = {
|
|
||||||
enable = true;
|
|
||||||
support32Bit = true;
|
|
||||||
};
|
|
||||||
pulse.enable = true;
|
|
||||||
# Uncomment the following line if you want to use JACK applications
|
|
||||||
# jack.enable = true;
|
|
||||||
};
|
|
||||||
# pulseaudio.enable = false; # TODO uncommenct at 25.05
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
./audio.nix
|
|
||||||
./graphics
|
|
||||||
./hardware-configuration.nix
|
|
||||||
./keyboard.nix
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [ ];
|
|
||||||
|
|
||||||
# Enable OpenGL
|
|
||||||
hardware.graphics.enable = true;
|
|
||||||
}
|
|
@ -1,57 +0,0 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
|
||||||
"nvme"
|
|
||||||
"xhci_pci"
|
|
||||||
"usb_storage"
|
|
||||||
"sd_mod"
|
|
||||||
"sdhci_pci"
|
|
||||||
];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/5ac9c425-35ae-47d5-a683-68ee0dbfc2bc";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-99b73f22-3fa1-42b5-ad48-54b0ccff72cc".device =
|
|
||||||
"/dev/disk/by-uuid/99b73f22-3fa1-42b5-ad48-54b0ccff72cc";
|
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/3CFB-D12A";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [
|
|
||||||
"fmask=0077"
|
|
||||||
"dmask=0077"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp2s0f0.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
via
|
|
||||||
];
|
|
||||||
|
|
||||||
hardware.keyboard.qmk.enable = true;
|
|
||||||
|
|
||||||
services.udev.packages = with pkgs; [ via ];
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
# System configurations for Hyprland. For home configs, see ./home-manager/hyprland
|
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
xdg-desktop-portal-hyprland
|
|
||||||
hyprpolkitagent # Auth deamon providing modals for password auth
|
|
||||||
hyprshot # Screenshots
|
|
||||||
hyprsunset # Blue light filter
|
|
||||||
unstable.hyprsysteminfo
|
|
||||||
unstable.hyprland-qtutils
|
|
||||||
unstable.hyprland-qt-support
|
|
||||||
];
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
hyprland = {
|
|
||||||
enable = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
withUWSM = true;
|
|
||||||
};
|
|
||||||
hyprlock.enable = true; # Lock screen
|
|
||||||
};
|
|
||||||
|
|
||||||
services.hypridle.enable = true; # Lock when unused
|
|
||||||
}
|
|
@ -1,37 +0,0 @@
|
|||||||
# TODO move locale config for hyprland here
|
|
||||||
let
|
|
||||||
utf-8 = "UTF-8";
|
|
||||||
en = "en_GB.${utf-8}";
|
|
||||||
nb = "nb_NO.${utf-8}";
|
|
||||||
common = import ../common.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
# Configure console keymap
|
|
||||||
console.keyMap = "uk";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n = {
|
|
||||||
defaultLocale = en;
|
|
||||||
supportedLocales = [
|
|
||||||
"${en}/${utf-8}"
|
|
||||||
"${nb}/${utf-8}"
|
|
||||||
];
|
|
||||||
extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = nb;
|
|
||||||
LC_IDENTIFICATION = nb;
|
|
||||||
LC_MEASUREMENT = nb;
|
|
||||||
LC_MONETARY = nb;
|
|
||||||
LC_NAME = nb;
|
|
||||||
LC_NUMERIC = nb;
|
|
||||||
LC_PAPER = nb;
|
|
||||||
LC_TELEPHONE = nb;
|
|
||||||
LC_TIME = nb;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure keymaps
|
|
||||||
services.xserver.xkb = common.keymaps;
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
time.timeZone = "Europe/Oslo";
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
let
|
|
||||||
common = import ../common.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
networking = {
|
|
||||||
networkmanager.enable = true;
|
|
||||||
hostName = common.hostname;
|
|
||||||
# wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
# Open ports in the firewall.
|
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
programs.ssh.enableAskPassword = false;
|
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
# Nix-Helper: github.com/viperML/nh
|
|
||||||
{
|
|
||||||
programs.nh = {
|
|
||||||
enable = true;
|
|
||||||
flake = ../.;
|
|
||||||
clean = {
|
|
||||||
enable = true;
|
|
||||||
dates = "weekly";
|
|
||||||
extraArgs = "--keep-since 30d";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment = {
|
|
||||||
sessionVariables = {
|
|
||||||
QT_QPA_PLATFORMTHEME = "qt6ct";
|
|
||||||
QT_QPA_PLATFORM = "wayland"; # Enable Wayland for QT
|
|
||||||
};
|
|
||||||
systemPackages = with pkgs.kdePackages; [
|
|
||||||
qtwayland
|
|
||||||
qtsvg
|
|
||||||
qt6ct
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
qt.enable = true;
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
let
|
|
||||||
theme = import ../theme.nix;
|
|
||||||
flavor = theme.flavor;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
(catppuccin-sddm.override {
|
|
||||||
flavor = flavor;
|
|
||||||
font = theme.nerdFont;
|
|
||||||
fontSize = "9";
|
|
||||||
background = "${../wallpapers/catppuccin_high.png}";
|
|
||||||
loginBackground = true;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
services.displayManager.sddm = {
|
|
||||||
enable = true;
|
|
||||||
theme = "catppuccin-${flavor}";
|
|
||||||
wayland.enable = true;
|
|
||||||
package = pkgs.kdePackages.sddm;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,68 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
gnupg
|
|
||||||
yubioath-flutter
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.gnupg.agent.enable = true;
|
|
||||||
|
|
||||||
security = {
|
|
||||||
pam = {
|
|
||||||
services = {
|
|
||||||
gdm-fingerprint.text = ''
|
|
||||||
auth required pam_shells.so
|
|
||||||
auth requisite pam_nologin.so
|
|
||||||
auth requisite pam_faillock.so preauth
|
|
||||||
auth required ${pkgs.fprintd}/lib/security/pam_fprintd.so
|
|
||||||
auth optional pam_permit.so
|
|
||||||
auth required pam_env.so
|
|
||||||
auth [success=ok default=1] ${pkgs.gdm}/lib/security/pam_gdm.so
|
|
||||||
auth optional ${pkgs.gnome-keyring}/lib/security/pam_gnome_keyring.so
|
|
||||||
|
|
||||||
account include login
|
|
||||||
|
|
||||||
password required pam_deny.so
|
|
||||||
|
|
||||||
session include login
|
|
||||||
session optional ${pkgs.gnome-keyring}/lib/security/pam_gnome_keyring.so auto_start
|
|
||||||
'';
|
|
||||||
login = {
|
|
||||||
fprintAuth = false;
|
|
||||||
u2fAuth = false; # U2F and password
|
|
||||||
};
|
|
||||||
sudo.u2fAuth = true; # U2F or password
|
|
||||||
};
|
|
||||||
u2f = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
cue = true; # Prompt: Please touch the device
|
|
||||||
interactive = false; # Prompt: Insert your U2F device, then press ENTER.
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Start the driver at boot
|
|
||||||
systemd.services.fprintd = {
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
serviceConfig.Type = "simple";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Install the driver
|
|
||||||
services.fprintd = {
|
|
||||||
enable = true;
|
|
||||||
tod.driver = pkgs.libfprint-2-tod1-goodix-550a; # Goodix 550a driver (from Lenovo)
|
|
||||||
};
|
|
||||||
|
|
||||||
# however for focaltech 2808:a658, use fprintd with overidden package (without tod)
|
|
||||||
# services.fprintd.package = pkgs.fprintd.override {
|
|
||||||
# libfprint = pkgs.libfprint-focaltech-2808-a658;
|
|
||||||
# };
|
|
||||||
|
|
||||||
services = {
|
|
||||||
pcscd.enable = true; # Required for Yubikey
|
|
||||||
udev.packages = with pkgs; [ yubikey-personalization ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
# For Fish dotfiles, see: /home-manager/fish.nix
|
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs = {
|
|
||||||
bash = {
|
|
||||||
# Starts the OS using Bash, then starts fish if it's not running
|
|
||||||
interactiveShellInit = ''
|
|
||||||
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
|
|
||||||
then
|
|
||||||
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
|
||||||
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
fish.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
@ -13,6 +13,8 @@ rec {
|
|||||||
pictures = "${dir.home}/Pictures";
|
pictures = "${dir.home}/Pictures";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hostname = "desktop";
|
||||||
|
|
||||||
keymaps = {
|
keymaps = {
|
||||||
layout = "gb,no";
|
layout = "gb,no";
|
||||||
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
|
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
|
||||||
|