Compare commits
2 commits
aab559c3d5
...
12f4f8b5c3
| Author | SHA1 | Date | |
|---|---|---|---|
| 12f4f8b5c3 | |||
| 79c56ca955 |
3 changed files with 61 additions and 7 deletions
|
|
@ -1,4 +1,27 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
wallpaper = "${config.home.homeDirectory}/repos/nixos/wallpapers/astronaut.png";
|
||||||
|
in {
|
||||||
|
services.swayidle = {
|
||||||
|
enable = true;
|
||||||
|
timeouts = [
|
||||||
|
{
|
||||||
|
timeout = 300;
|
||||||
|
command = "${pkgs.swaylock}/bin/swaylock -f -i ${wallpaper}";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
timeout = 600;
|
||||||
|
command = "${pkgs.niri}/bin/niri msg action power-off-monitors";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
events = [
|
||||||
|
{
|
||||||
|
event = "before-sleep";
|
||||||
|
command = "${pkgs.swaylock}/bin/swaylock -f -i ${wallpaper}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
XDG_CURRENT_DESKTOP = "niri";
|
XDG_CURRENT_DESKTOP = "niri";
|
||||||
XDG_SESSION_DESKTOP = "niri";
|
XDG_SESSION_DESKTOP = "niri";
|
||||||
|
|
@ -41,6 +64,16 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file.".local/bin/swww-init" = {
|
||||||
|
executable = true;
|
||||||
|
text = ''
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
swww-daemon &
|
||||||
|
sleep 0.5
|
||||||
|
swww img "${wallpaper}" --transition-type none
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
xdg.configFile."quickshell".source =
|
xdg.configFile."quickshell".source =
|
||||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/repos/nixos/quickshell";
|
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/repos/nixos/quickshell";
|
||||||
|
|
||||||
|
|
@ -75,6 +108,7 @@
|
||||||
prefer-no-csd
|
prefer-no-csd
|
||||||
|
|
||||||
spawn-at-startup "quickshell"
|
spawn-at-startup "quickshell"
|
||||||
|
spawn-at-startup "bash" "-c" "$HOME/.local/bin/swww-init"
|
||||||
|
|
||||||
screenshot-path "${config.xdg.userDirs.pictures}/screenshots/%Y-%m-%d %H-%M-%S.png"
|
screenshot-path "${config.xdg.userDirs.pictures}/screenshots/%Y-%m-%d %H-%M-%S.png"
|
||||||
|
|
||||||
|
|
@ -110,7 +144,7 @@
|
||||||
|
|
||||||
// System
|
// System
|
||||||
Mod+Shift+E { quit; }
|
Mod+Shift+E { quit; }
|
||||||
Mod+L { spawn "swaylock"; }
|
Mod+L { spawn "swaylock" "-i" "${wallpaper}"; }
|
||||||
|
|
||||||
// Volume
|
// Volume
|
||||||
XF86AudioRaiseVolume { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%+"; }
|
XF86AudioRaiseVolume { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%+"; }
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,10 @@ let
|
||||||
in {
|
in {
|
||||||
den.aspects.dev.nixos = { pkgs, ... }:
|
den.aspects.dev.nixos = { pkgs, ... }:
|
||||||
let
|
let
|
||||||
pkgs-unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system};
|
pkgs-unstable = import inputs.nixpkgs-unstable {
|
||||||
|
system = pkgs.system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = with pkgs-unstable; [
|
environment.systemPackages = with pkgs-unstable; [
|
||||||
# CLI utilities
|
# CLI utilities
|
||||||
|
|
@ -15,6 +18,7 @@ in {
|
||||||
ripgrep
|
ripgrep
|
||||||
chafa
|
chafa
|
||||||
forgejo-cli
|
forgejo-cli
|
||||||
|
awscli2
|
||||||
|
|
||||||
tracy
|
tracy
|
||||||
|
|
||||||
|
|
@ -22,7 +26,7 @@ in {
|
||||||
docker-compose
|
docker-compose
|
||||||
|
|
||||||
# IDE
|
# IDE
|
||||||
jetbrains.idea-oss
|
jetbrains.idea
|
||||||
|
|
||||||
# Neovim
|
# Neovim
|
||||||
vimPlugins.blink-cmp
|
vimPlugins.blink-cmp
|
||||||
|
|
@ -56,11 +60,27 @@ in {
|
||||||
maven
|
maven
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.java = {
|
environment.variables = {
|
||||||
enable = true;
|
JAVA_HOME = "${pkgs-unstable.openjdk8}";
|
||||||
package = pkgs-unstable.openjdk17;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d /var/lib/payara41 0755 ${username} users -"
|
||||||
|
];
|
||||||
|
|
||||||
|
system.activationScripts.payaraJava = ''
|
||||||
|
asenv=/var/lib/payara41/glassfish/config/asenv.conf
|
||||||
|
if [ -f "$asenv" ]; then
|
||||||
|
${pkgs.gnused}/bin/sed -i '/^AS_JAVA=/d' "$asenv"
|
||||||
|
echo 'AS_JAVA="${pkgs-unstable.openjdk8}"' >> "$asenv"
|
||||||
|
fi
|
||||||
|
|
||||||
|
domain_xml=/var/lib/payara41/glassfish/domains/domain1/config/domain.xml
|
||||||
|
if [ -f "$domain_xml" ]; then
|
||||||
|
${pkgs.gnused}/bin/sed -i 's|java-home="[^"]*"|java-home="${pkgs-unstable.openjdk8}/lib/openjdk"|' "$domain_xml"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
users.users.${username}.extraGroups = [ "docker" ];
|
users.users.${username}.extraGroups = [ "docker" ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
BIN
wallpapers/astronaut.png
Normal file
BIN
wallpapers/astronaut.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 833 KiB |
Loading…
Add table
Add a link
Reference in a new issue