chore(desktop): remove unused files

This commit is contained in:
Guz
2025-02-05 10:23:08 -03:00
parent ec9175479e
commit e9071d0d36
9 changed files with 0 additions and 919 deletions

View File

@@ -1,113 +0,0 @@
{
config,
lib,
inputs,
pkgs,
...
}: let
cfg = config.desktop.colors;
in {
imports = [
inputs.nix-colors.homeManagerModules.default
];
options.desktop.colors = with lib;
with lib.types; {
accent = mkOption {
type = str;
default = "cdd6f4";
description = "The accent color of Frappuccino";
};
accentBase = mkOption {
type = str;
default = "magenta";
description = "The base name for the accent color to be used in the terminal";
};
scheme = mkOption {
type = path;
default = ./frappuccino.yaml;
};
};
config = with lib; {
colorScheme = inputs.nix-colors.lib.schemeFromYAML "frappuccino" (builtins.readFile cfg.scheme);
home.packages = with pkgs; [
gnome.gnome-themes-extra
];
gtk = {
enable = true;
theme = {
name = "Catppuccin-Mocha-Compact-Mauve-Dark";
package = pkgs.catppuccin-gtk.override {
size = "compact";
tweaks = ["rimless" "black"];
accents = ["mauve"];
variant = "mocha";
};
};
};
programs.alacritty.settings.colors = with config.colorScheme.palette; rec {
primary = {
foreground = "#${base05}";
background = "#${base00}";
};
normal = {
black = "#${base02}";
red = "#${base08}";
green = "#${base0B}";
yellow = "#${base0A}";
blue = "#${base0D}";
magenta = "#${base0E}";
cyan = "#${base0C}";
white = "#${base05}";
};
bright = normal;
selection = {
text = primary.foreground;
background = primary.background;
};
};
programs.wezterm.config.color_scheme = mkDefault "system";
programs.wezterm.colorSchemes = mkIf (config.programs.wezterm.config.color_scheme == "system") {
system = with config.colorScheme.palette; {
foreground = "#${base05}";
background = "#${base00}";
cursor_fg = "#${base01}";
cursor_bg = "#${cfg.accent}";
cursor_border = "#${cfg.accent}";
selection_fg = "#${base04}";
selection_bg = "#${cfg.accent}";
split = "#${base04}";
ansi = [
"#${base03}"
"#${base08}"
"#${base0B}"
"#${base0A}"
"#${base0D}"
"#${base0E}"
"#${base0C}"
"#${base03}"
];
brights = [
"#${base03}"
"#${base08}"
"#${base0B}"
"#${base0A}"
"#${base0D}"
"#${base0E}"
"#${base0C}"
"#${base03}"
];
};
};
};
}

View File

@@ -1,18 +0,0 @@
scheme: "Frappuccino (a catppuccin fork)"
author: "https://github.com/Guz013 (Catppuccin: https://github.com/catppuccin/catppuccin"
base00: "111111" # base
base01: "101010" # mantle
base02: "181818" # surface0
base03: "181818" # surface1
base04: "181818" # surface2
base05: "cdd6f4" # text
base06: "f5e0dc" # rosewater
base07: "b4befe" # lavender
base08: "f38ba8" # red
base09: "fab387" # peach
base0A: "f9e2af" # yellow
base0B: "a6e3a1" # green
base0C: "94e2d5" # teal
base0D: "89b4fa" # blue
base0E: "cba6f7" # mauve
base0F: "f2cdcd" # flamingo

View File

@@ -1,161 +0,0 @@
{
config,
pkgs,
...
}: let
wallpaper = ../../../static/guz-wallpaper-default.png;
desktop-boot = pkgs.writeShellScriptBin "desktop-boot" ''
function eww() { ${config.programs.eww.package}/bin/eww "$@"; }
function hyprctl() { ${config.wayland.windowManager.hyprland.package}/bin/hyprctl; }
function swww() { ${pkgs.swww}/bin/swww "$@"; }
function swww-daemon() { ${pkgs.swww}/bin/swww-daemon "$@"; }
if [[ "$(eww ping)" -ne "pong" ]]; then
eww daemon &> /dev/null
fi
eww close-all
eww open bar
eww open bar-2
eww reload
(swww-daemon &> /dev/null) & swww img "${/. + wallpaper}"
'';
desktop-update = pkgs.writeShellScriptBin "desktop-update" ''
function hyprctl() { ${config.wayland.windowManager.hyprland.package}/bin/hyprctl; }
# hyprctl reload
'';
in {
imports = [
./keymaps.nix
./colors
./eww
];
home.activation = {
desktop-update = "${desktop-update}/bin/desktop-update";
};
home.packages = with pkgs; [
wl-clipboard
cliphist
libnotify
];
xdg.mime.enable = true;
xdg.mimeApps.enable = true;
xdg.mimeApps.defaultApplications = let
librewolf = "librewolf.desktop";
in {
"text/html" = librewolf;
"x-scheme-handler/http" = librewolf;
"x-scheme-handler/https" = librewolf;
"x-scheme-handler/about" = librewolf;
"x-scheme-handler/unknown" = librewolf;
};
xdg.desktopEntries = {
"librewolf" = {
name = "Librewolf";
exec = "${pkgs.librewolf}/bin/librewolf %U";
mimeType = [
"text/html"
"x-scheme-handler/http"
"x-scheme-handler/https"
"x-scheme-handler/about"
"x-scheme-handler/unknown"
];
};
"pureref" = {
name = "Pureref";
exec = "${pkgs.pureref}/bin/pureref";
};
};
services.dunst.enable = true;
services.dunst.settings = {
global = {
follow = "mouse";
};
};
programs.hyprland.enable = true;
programs.hyprland.settings = let
monitor-1 = "HDMI-A-1";
monitor-2 = "DVI-D-1";
in {
animations = {
enabled = true;
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
animation = [
"windows, 1, 7, myBezier"
"windowsOut, 1, 7, default, popin 80%"
"border, 1, 10, default"
"borderangle, 1, 8, default"
"fade, 1, 7, default"
"workspaces, 1, 6, default"
];
};
decoration = {
rounding = 5;
dim_inactive = true;
dim_strength = 0.2;
dim_around = 0.4;
blur.enabled = false;
};
dwindle = {
pseudotile = true;
preserve_split = true;
};
env = [
"WLR_DRM_DEVICES,${config.xdg.configHome}/hypr/card"
];
exec = [
"${desktop-boot}/bin/desktop-boot"
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
"${pkgs.wl-clipboard}/bin/wl-paste --type text --watch ${pkgs.cliphist}/bin/cliphist store"
"${pkgs.wl-clipboard}/bin/wl-paste --type image --watch ${pkgs.cliphist}/bin/cliphist store"
];
general = {
gaps_in = 5;
gaps_out = 10;
border_size = 0;
"col.active_border" = "rgba(ffffff99) rgba(ffffff33) 90deg";
"col.inactive_border" = "rgba(18181800)";
layout = "dwindle";
};
gestures.workspace_swipe = false;
input = {
kb_layout = "br";
kb_variant = "abnt2";
follow_mouse = 1;
sensitivity = 0;
};
# master.new_is_master = true;
monitor = [
"${monitor-1},2560x1080,0x0,1"
"${monitor-2},1920x1080,2560x0,1"
];
windowrulev2 = [
"float,class:^(org.inkscape.Inkscape)$"
"tile,class:^(org.inkscape.Inkscape)$,title:(.*)(- Inkscape)$"
"float,class:^(blender)$,title:^(?!.*\ \-\ Blender).*$"
];
workspace = [
# Primary monitor
"1,monitor:${monitor-1},default:true"
"2,monitor:${monitor-1}"
"3,monitor:${monitor-1}"
"4,monitor:${monitor-1}"
"5,monitor:${monitor-1}"
# Second monitor
"6,monitor:${monitor-2}"
"7,monitor:${monitor-2}"
"8,monitor:${monitor-2}"
"9,monitor:${monitor-2}"
"10,monitor:${monitor-2},default:true"
];
};
}

View File

@@ -1,116 +0,0 @@
{
lib,
config,
pkgs,
...
}: let
ewwDir = "${config.xdg.configHome}/eww";
eww-get-active-workspace = pkgs.writeShellScriptBin "eww-get-active-workspace" ''
hyprctl="${pkgs.hyprland}/bin/hyprctl"
jq="${pkgs.jq}/bin/jq"
socat="${pkgs.socat}/bin/socat"
$hyprctl monitors -j |
$jq '.[] | select(.focused) | .activeWorkspace.id'
$socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}'
'';
eww-volume = pkgs.writeShellScriptBin "eww-volume" ''
pulsemixer="${pkgs.pulsemixer}/bin/pulsemixer"
sink="$(echo $($pulsemixer -l | grep 'Default' | grep 'sink-' | awk '{print $3}') | rev | cut -c 2- | rev)"
function="$1"
value="$2"
if [[ "$function" == "set" ]]; then
$pulsemixer --id "$sink" --set-volume "$value"
echo "0"
elif [[ "$function" == "get" ]]; then
echo "$($pulsemixer --id "$sink" --get-volume | awk '{print $1}')"
elif [[ "$function" == "label" ]]; then
echo "$($pulsemixer --id "$sink" --get-mute | awk '{if($1>0) print "󰖁"; else print "󰕾"}')"
fi
'';
eww-weather = pkgs.writeShellScriptBin "eww-weather" ''
curl="${pkgs.curl}/bin/curl"
jq="${pkgs.jq}/bin/jq"
lat="$(cat /run/secrets/lat)"
lon="$(cat /run/secrets/lon)"
res="$($curl -s "https://api.open-meteo.com/v1/forecast?latitude=$lat&longitude=$lon&current=temperature_2m,precipitation,wind_speed_10m,rain")"
temperature="$(echo $res | $jq .current.temperature_2m)"
wind="$(echo $res | $jq .current.wind_speed_10m)"
precipitation="$(echo $res | $jq .current.precipitation)"
rain="$(echo $res | $jq .current.rain)"
if [[ "$1" == "--temperature" ]]; then
echo $temperature
elif [[ "$1" == "--wind" ]]; then
echo $wind
elif [[ "$1" == "--precipitation" ]]; then
echo $precipitation
elif [[ "$1" == "--rain" ]]; then
echo $rain
fi
'';
eww-battery = pkgs.writeShellScriptBin "eww-battery" ''
BAT="$(ls /sys/class/power_supply | grep BAT | head -n 1)"
cat "/sys/class/power_supply/$BAT/capacity"
'';
in {
imports = [];
options = {};
config = {
programs.eww.package = pkgs.eww;
home.file."${ewwDir}/eww.yuck".source = ./eww.yuck;
home.file."${ewwDir}/eww.scss".source = ./eww.scss;
home.file."${ewwDir}/vars.yuck".text = ''
(deflisten active-workspace :initial "1"
"${eww-get-active-workspace}/bin/eww-get-active-workspace")
(defpoll volume :interval "1s"
"${eww-volume}/bin/eww-volume get")
(defpoll volume-label :interval "1s"
"${eww-volume}/bin/eww-volume label")
(defvar volume-set "${eww-volume}/bin/eww-volume set {}")
(defvar volume-toggle "${pkgs.pulsemixer}/bin/pulsemixer --toggle-mute")
(defpoll temperature :interval "15m" :initial "00.0"
"${eww-weather}/bin/eww-weather --temperature")
(defpoll wind :interval "15m" :initial "00.0"
"${eww-weather}/bin/eww-weather --wind")
(defpoll precipitation :interval "15m" :initial "00.0"
"${eww-weather}/bin/eww-weather --precipitation")
(defpoll rain :interval "15m" :initial "00.0"
"${eww-weather}/bin/eww-weather --rain")
(defpoll battery :interval "1s"
"${eww-battery}/bin/eww-battery")
'';
home.file."${ewwDir}/vars.scss".text = ''
$color-accent: #${config.desktop.colors.accent};
$foreground: rgba(#${config.colorScheme.palette.base03}, 1);
$background: rgba(#${config.colorScheme.palette.base00} , 1);
$shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
$border-radius: 5px;
@mixin box-style {
border-radius: $border-radius;
box-shadow: $shadow;
background-color: $background;
}
'';
};
}

View File

@@ -1,75 +0,0 @@
@import "/home/guz/.config/eww/vars.scss";
* {
background-color: transparent;
all: unset;
}
tooltip {
@include box-style();
background-color: $foreground;
color: $color-accent;
font-weight: bold;
}
.wrapper {
padding: 5px 10px;
}
.bar {
@include box-style();
color: $color-accent;
font-family: 'Fira Code Nerd Font', 'Fira Code';
font-weight: bold;
background-color: $background;
padding: 5px 10px;
.rightstuff {
// background-color: blue;
}
.middlestuff {
// background-color: green;
font-size: small;
}
.leftstuff {
// background-color: red;
}
}
.temperature, .rain, .season {
margin: 0 4px;
}
.metric {
.label {
font-size: small;
margin: 0;
padding: 0;
color: $color-accent;
margin-right: 5px;
}
margin-right: 5px;
scale trough {
all: unset;
background: $foreground;
border-radius: 50px;
min-height: 5px;
min-width: 50px;
highlight {
all: unset;
background-color: $color-accent;
border-radius: 10px;
}
}
}
.bar-full-volume-align {
margin-left: 10px;
}

View File

@@ -1,199 +0,0 @@
(include "/home/guz/.config/eww/vars.yuck");
(defpoll week-day :interval "1m"
:initial "1"
`date +%w`)
(defpoll quarter :interval "24h"
:initial "1"
`date +%q`)
(defpoll time :interval "10s"
:initial "00:00"
`date +%H:%M`)
(defpoll date :interval "1m"
:initial "00/00"
`date +%d/%m`)
(defwidget empty [] "")
(defwidget day []
(box :orientation "h"
; Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn
"${[" Sun", " Mon", " Tue", "󰬸 Wed", "󱡓 Thu", " Fri", " Sat"][week-day]} ${date} ${time}"))
(defwidget season []
(box :orientation "h"
"${["", "󰖨 Summer", "󰌪 Autumn", " Winter", "󰉊 Spring"][quarter]}"))
(defwidget metric [label value ?value-text ?onchange ?onclick]
(box :orientation "h"
:tooltip "${value-text != "" ? value-text : value}"
:space-evenly false
:class "metric"
(box :orientation "h"
:class "label"
(eventbox :active {onclick != ""}
:width 15
:cursor "pointer"
:onclick onclick
label))
(scale :min 0
:max 101
:active {onchange != ""}
:onchange onchange
:value value)))
(defwidget system-stats []
(box :class "system-stats"
""))
(defwidget workspaces [workspace]
(box :class "workspace"
:orientation "h"
"${
workspace == 1 ? '' : ''
} ${
workspace == 2 ? '' : ''
} ${
workspace == 3 ? '' : ''
} ${
workspace == 4 ? '' : ''
} ${
workspace == 5 ? '' : ''
}"))
(defwindow bar
:monitor 0
:geometry (geometry :x "0%"
:y "0%"
:width "100%"
:height "20px"
:anchor "top center")
:stacking "fg"
:reserve (struts :distance "40px" :side "top")
:windowtype "dock"
:wm-ignore false
:exclusive true
(box :orientation "h"
:class "wrapper"
(centerbox :orientation "h"
:class "bar"
(box :orientation "h"
:halign "start"
:class "rightstuff"
(workspaces :workspace active-workspace)
(empty)
(empty))
(box :orientation "h"
:halign "center"
:class "middlestuff"
(day))
(box :orientation "h"
:halign "end"
:class "leftstuff"
:space-evenly false
(metric :label volume-label
:value volume
:value-text "${volume-label} Volume ${volume}%"
:onclick volume-toggle
:onchange volume-set)))))
(defwindow bar-2
:monitor 1
:geometry (geometry :x "0%"
:y "0%"
:width "100%"
:height "20px"
:anchor "top center")
:stacking "fg"
:reserve (struts :distance "40px" :side "top")
:windowtype "dock"
:wm-ignore false
:exclusive true
(box :orientation "h"
:class "wrapper"
(centerbox :orientation "h"
:class "bar"
(box :orientation "h"
:halign "start"
:class "rightstuff"
(metric :label ""
:value "${EWW_RAM.used_mem_perc}"
:value-text " Ram ${round(EWW_RAM.used_mem_perc, 2)}%")
(metric :label ""
:value "${EWW_CPU.avg}"
:value-text " CPU ${round(EWW_CPU.avg, 2)}%")
(metric :label "󰨣"
:value "${EWW_DISK["/"].used_perc}"
:value-text "󰨣 Disk ${round(EWW_DISK["/"].used_perc, 2)}%")
(empty)
(empty))
(box :orientation "h"
:halign "center"
:class "middlestuff"
:space-evenly false
(box :class "season"
(season))
(label :tooltip "󱣖 ${temperature}°C -  ${wind}km/h"
:class "temperature"
:text "${round(temperature, 0)}󰔄")
(label :tooltip "󰖗 ${rain}mm - 󰖌 ${precipitation}mm"
:class "rain"
:text "${round(precipitation, 2)}mm"))
(box :orientation "h"
:halign "end"
:class "leftstuff"
(empty)
(workspaces :workspace "${active-workspace - 5}")))))
(defwindow bar-full
:monitor 0
:geometry (geometry :x "0%"
:y "0%"
:width "100%"
:height "20px"
:anchor "top center")
:stacking "fg"
:reserve (struts :distance "40px" :side "top")
:windowtype "dock"
:wm-ignore false
:exclusive true
(box :orientation "h"
:class "wrapper"
(centerbox :orientation "h"
:class "bar"
(box :orientation "h"
:halign "start"
:class "rightstuff"
(workspaces :workspace active-workspace)
(box :orientation "h"
:halign "start"
:class "bar-full-volume-align"
(metric :label volume-label
:value volume
:value-text "${volume-label} Volume ${volume}%"
:onclick volume-toggle
:onchange volume-set))
(metric :label "󰂄"
:value "${battery}"
:value-text "󰂄 Battery ${battery}%"))
(box :orientation "h"
:halign "center"
:class "middlestuff"
(day)
(season))
(box :orientation "h"
:halign "end"
:class "leftstuff"
:space-evenly false
(metric :label ""
:value "${EWW_RAM.used_mem_perc}"
:value-text " Ram ${round(EWW_RAM.used_mem_perc, 2)}%")
(metric :label ""
:value "${EWW_CPU.avg}"
:value-text " CPU ${round(EWW_CPU.avg, 2)}%")
(metric :label "󰨣"
:value "${EWW_DISK["/"].used_perc}"
:value-text "󰨣 Disk ${round(EWW_DISK["/"].used_perc, 2)}%")))))

View File

@@ -1,65 +0,0 @@
{
config,
pkgs,
...
}: {
imports = [
];
programs.hyprland.enable = true;
programs.hyprland.settings = let
cliphist = "${pkgs.cliphist}/bin/cliphist";
librewolf = "${pkgs.librewolf}/bin/librewolf";
terminal = "${config.programs.alacritty.package}/bin/alacritty";
mod = "SUPER";
rofi = "${pkgs.rofi}/bin/rofi";
grim = "${pkgs.grim}/bin/grim";
slurp = "${pkgs.slurp}/bin/slurp";
wl-copy = "${pkgs.wl-clipboard}/bin/wl-copy";
in {
bind = [
"${mod}, C, killactive"
"${mod}, M, exit"
"${mod}, R, togglefloating"
"${mod}, F, fullscreen"
"${mod}, Z, togglesplit"
"${mod}, Q, exec, ${terminal}"
"${mod}, E, exec, ${terminal} -e lf"
"${mod} + SHIFT, E, exec, ${librewolf}"
"${mod}, S, exec, ${rofi} -show drun -show-icons"
",Print, exec, ${grim} -g \"$(${slurp} -d)\" - | ${wl-copy}"
"${mod}, V, exec, ${cliphist} list | ${rofi} -dmenu | ${cliphist} decode | ${wl-copy}"
"${mod}, 1, workspace, 1"
"${mod}, 2, workspace, 2"
"${mod}, 3, workspace, 3"
"${mod}, 4, workspace, 4"
"${mod}, 5, workspace, 5"
"${mod} + SHIFT, 1, movetoworkspace, 1"
"${mod} + SHIFT, 2, movetoworkspace, 2"
"${mod} + SHIFT, 3, movetoworkspace, 3"
"${mod} + SHIFT, 4, movetoworkspace, 4"
"${mod} + SHIFT, 5, movetoworkspace, 5"
"${mod}, 6, workspace, 6"
"${mod}, 7, workspace, 7"
"${mod}, 8, workspace, 8"
"${mod}, 9, workspace, 9"
"${mod}, 0, workspace, 10"
"${mod} + SHIFT, 6, movetoworkspace, 6"
"${mod} + SHIFT, 7, movetoworkspace, 7"
"${mod} + SHIFT, 8, movetoworkspace, 8"
"${mod} + SHIFT, 9, movetoworkspace, 9"
"${mod} + SHIFT, 0, movetoworkspace, 10"
"${mod}, H, movefocus, l"
"${mod}, L, movefocus, r"
"${mod}, K, movefocus, u"
"${mod}, J, movefocus, d"
];
bindm = [
"${mod}, mouse:272, movewindow"
"${mod}, mouse:273, resizewindow"
];
};
}

View File

@@ -1,127 +0,0 @@
{
config,
pkgs,
inputs,
...
} @ args: {
imports = [
inputs.rec-sh.homeManagerModules.rec-sh
inputs.dot013-environment.homeManagerModule
inputs.dot013-neovim.homeManagerModules.neovim
];
programs.rec-sh.enable = true;
dot013.environment.enable = true;
dot013.environment.tmux.sessionizer.paths = ["~/.projects"];
dot013.environment.ssh.devices = {
"spacestation" = {
hostname = "${args.osConfig.battleship-secrets.lesser.devices.spacestation}";
};
"figther" = {
hostname = "${args.osConfig.battleship-secrets.lesser.devices.figther}";
};
};
programs.brave.enable = true;
programs.brave.extensions = [
{id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";}
{id = "eimadpbcbfnmbkopoojfekhnkhdbieeh";}
];
librewolf = {
enable = true;
profiles = {
guz = {
id = 0;
settings = {
"webgl.disabled" = false;
"browser.startup.homepage" = "https://search.brave.com";
"privacy.clearOnShutdown.history" = false;
"privacy.clearOnShutdown.downloads" = false;
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
"privacy.clearOnShutdown.cookies" = false;
};
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
canvasblocker
clearurls
darkreader
facebook-container
libredirect
multi-account-containers
simplelogin
smart-referer
sponsorblock
tridactyl
ublock-origin
];
};
};
};
home.file."${config.home.homeDirectory}".text = ''
prefix = $${HOME}/.npm-packages
'';
programs.zsh.initExtra = ''
export PATH=~/.npm-packages/bin:$PATH
'';
programs.krita.enable = true;
services.flatpak.enable = true;
xdg.portal.enable = true;
xdg.portal.extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
xdg.portal.config = {
common.default = ["gtk"];
};
xdg.portal.xdgOpenUsePortal = true;
services.flatpak.packages = [
"nz.mega.MEGAsync"
"com.bitwarden.desktop"
"org.mozilla.Thunderbird"
"net.blockbench.Blockbench"
"de.shorsh.discord-screenaudio"
"md.obsidian.Obsidian"
"me.proton.Mail"
"org.beeref.BeeRef"
];
services.easyeffects.enable = true;
home.sessionVariables = {
STEAM_EXTRA_COMPACT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";
};
nixpkgs.config.allowUnfree = true;
nixpkgs.config.allowUnfreePredicate = _: true;
home.packages = with pkgs;
[
chromium
blender
vesktop
gimp
gamemode
lutris
pavucontrol
libreoffice
# lmms
pinentry
gnome.nautilus
inkscape
latexrun
zathura
ferdium
act
protonup
showmethekey
bluetuith
]
++ (with inputs.dot013-shell.packages.${pkgs.system}; [
neovim
yazi
zellij
]);
}

View File

@@ -1,45 +0,0 @@
{
config,
inputs,
lib,
pkgs,
...
}: let
lesser-secrets = with builtins;
fromJSON (readFile ../../secrets/battleship-secrets.lesser.decrypted.json);
jsonType = pkgs.formats.json {};
in {
imports = [
inputs.sops-nix.nixosModules.sops
];
options.battleship-secrets = with lib;
with lib.types; {
lesser = mkOption {
type = submodule ({...}: {
freeformType = jsonType.type;
options = {};
});
default = lesser-secrets;
};
};
config = {
environment.systemPackages = with pkgs; [
sops
];
sops.defaultSopsFile = ../../secrets/battleship-secrets.yaml;
sops.defaultSopsFormat = "yaml";
sops.secrets.lon = {
owner = config.users.users.guz.name;
};
sops.secrets.lat = {
owner = config.users.users.guz.name;
};
sops.secrets."guz/password" = {
owner = config.users.users.guz.name;
};
sops.age.keyFile = "/home/guz/.config/sops/age/keys.txt";
};
}