mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
fix: update dms
This commit is contained in:
parent
f7157b5a1f
commit
04c85ec904
12 changed files with 77 additions and 41 deletions
46
flake.lock
generated
46
flake.lock
generated
|
|
@ -208,6 +208,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"dms-plugin-registry": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1768784795,
|
||||||
|
"narHash": "sha256-mhltGI4CV6xZOC5FjkODPexuVqPb7nKMHN7qPnQdqVA=",
|
||||||
|
"owner": "AvengeMedia",
|
||||||
|
"repo": "dms-plugin-registry",
|
||||||
|
"rev": "f520ece83ea17eb842122c4b55683e5eab8c3100",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "AvengeMedia",
|
||||||
|
"repo": "dms-plugin-registry",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
@ -745,11 +765,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768302833,
|
"lastModified": 1768569498,
|
||||||
"narHash": "sha256-h5bRFy9bco+8QcK7rGoOiqMxMbmn21moTACofNLRMP4=",
|
"narHash": "sha256-bB6Nt99Cj8Nu5nIUq0GLmpiErIT5KFshMQJGMZwgqUo=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "61db79b0c6b838d9894923920b612048e1201926",
|
"rev": "be5afa0fcb31f0a96bf9ecba05a516c66fcd8114",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -761,15 +781,15 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_6": {
|
"nixpkgs_6": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767364772,
|
"lastModified": 1768302833,
|
||||||
"narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=",
|
"narHash": "sha256-h5bRFy9bco+8QcK7rGoOiqMxMbmn21moTACofNLRMP4=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "16c7794d0a28b5a37904d55bcca36003b9109aaa",
|
"rev": "61db79b0c6b838d9894923920b612048e1201926",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"ref": "nixpkgs-unstable",
|
"ref": "nixpkgs-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
|
|
@ -801,11 +821,11 @@
|
||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": "nixpkgs_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768818880,
|
"lastModified": 1768839981,
|
||||||
"narHash": "sha256-ajLZVEsG/avT7pMLU4Hetm7qhuW/WlH0m1fpPeJqOu8=",
|
"narHash": "sha256-uATK7ueuz0yllbt7AfmZnNRkOklf4EnmFUJgoX3x3Cs=",
|
||||||
"owner": "anomalyco",
|
"owner": "anomalyco",
|
||||||
"repo": "opencode",
|
"repo": "opencode",
|
||||||
"rev": "08005d755b240dac3ec208aee504a76af7052de7",
|
"rev": "4ee540309f41d6eaa65d0d4dd7c70fea71c973d1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -867,6 +887,7 @@
|
||||||
"determinate": "determinate",
|
"determinate": "determinate",
|
||||||
"dgop": "dgop",
|
"dgop": "dgop",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
|
"dms-plugin-registry": "dms-plugin-registry",
|
||||||
"flake-parts": "flake-parts_3",
|
"flake-parts": "flake-parts_3",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"niri": "niri",
|
"niri": "niri",
|
||||||
|
|
@ -878,6 +899,7 @@
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
|
"opencode": "opencode",
|
||||||
"treefmt-nix": "treefmt-nix_2"
|
"treefmt-nix": "treefmt-nix_2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -919,7 +941,7 @@
|
||||||
},
|
},
|
||||||
"treefmt-nix_2": {
|
"treefmt-nix_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": "nixpkgs_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768158989,
|
"lastModified": 1768158989,
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,8 @@
|
||||||
|
|
||||||
dank-material-shell.url = "github:AvengeMedia/DankMaterialShell";
|
dank-material-shell.url = "github:AvengeMedia/DankMaterialShell";
|
||||||
dank-material-shell.inputs.nixpkgs.follows = "nixpkgs";
|
dank-material-shell.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
dank-material-shell.inputs.dgop.follows = "dgop";
|
dms-plugin-registry.url = "github:AvengeMedia/dms-plugin-registry";
|
||||||
|
dms-plugin-registry.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
opencode.url = "github:anomalyco/opencode";
|
opencode.url = "github:anomalyco/opencode";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
_: {
|
_: {
|
||||||
monitors = [
|
monitors = [
|
||||||
{
|
{
|
||||||
name = "DP-3";
|
name = "DP-2";
|
||||||
resolution = {
|
resolution = {
|
||||||
width = 2560;
|
width = 2560;
|
||||||
height = 1440;
|
height = 1440;
|
||||||
|
|
@ -14,7 +14,7 @@ _: {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "DP-2";
|
name = "DP-3";
|
||||||
resolution = {
|
resolution = {
|
||||||
width = 2560;
|
width = 2560;
|
||||||
height = 1440;
|
height = 1440;
|
||||||
|
|
|
||||||
7
justfile
7
justfile
|
|
@ -1,7 +1,6 @@
|
||||||
# export NIXPKGS_ALLOW_UNFREE := "1"
|
# export NIXPKGS_ALLOW_UNFREE := "1"
|
||||||
|
|
||||||
nixcmd := "nix --experimental-features 'nix-command flakes'"
|
nixcmd := "nix --experimental-features 'nix-command flakes'"
|
||||||
nix_output_monitor := "--log-format internal-json |& nix --experimental-features 'nix-command flakes' run nixpkgs#nix-output-monitor -- --json"
|
|
||||||
|
|
||||||
@_default:
|
@_default:
|
||||||
just --list
|
just --list
|
||||||
|
|
@ -41,7 +40,7 @@ switch hostname=`hostname -s` target='':
|
||||||
{{ nixcmd }} run nixpkgs#nixos-rebuild -- switch \
|
{{ nixcmd }} run nixpkgs#nixos-rebuild -- switch \
|
||||||
--flake .#{{ hostname }} \
|
--flake .#{{ hostname }} \
|
||||||
--target-host {{ target }} \
|
--target-host {{ target }} \
|
||||||
--sudo {{ nix_output_monitor }}
|
--sudo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[doc('Use nixos-anywhere to deploy to a remote host')]
|
[doc('Use nixos-anywhere to deploy to a remote host')]
|
||||||
|
|
@ -72,7 +71,7 @@ deploy-remote hostname target:
|
||||||
[doc('A wrapper disko-install')]
|
[doc('A wrapper disko-install')]
|
||||||
[group('deploy')]
|
[group('deploy')]
|
||||||
disko-install hostname disk:
|
disko-install hostname disk:
|
||||||
sudo {{ nixcmd }} run 'github:nix-community/disko/latest#disko-install' -- --flake .#{{ hostname }} --disk main {{ disk }} {{ nix_output_monitor }}
|
sudo {{ nixcmd }} run 'github:nix-community/disko/latest#disko-install' -- --flake .#{{ hostname }} --disk main {{ disk }}
|
||||||
|
|
||||||
[doc('Build an install ISO for a host')]
|
[doc('Build an install ISO for a host')]
|
||||||
[group('deploy')]
|
[group('deploy')]
|
||||||
|
|
@ -83,7 +82,7 @@ iso hostname:
|
||||||
[group('deploy')]
|
[group('deploy')]
|
||||||
bootstrap-iso:
|
bootstrap-iso:
|
||||||
@echo "Building bootstrap ISO..."
|
@echo "Building bootstrap ISO..."
|
||||||
{{ nixcmd }} build .#nixosConfigurations.bootstrap.config.system.build.isoImage {{ nix_output_monitor }}
|
{{ nixcmd }} build .#nixosConfigurations.bootstrap.config.system.build.isoImage
|
||||||
@echo "ISO built: $(ls -1 result/iso/*.iso)"
|
@echo "ISO built: $(ls -1 result/iso/*.iso)"
|
||||||
|
|
||||||
[doc('Flash the bootstrap ISO to a USB drive')]
|
[doc('Flash the bootstrap ISO to a USB drive')]
|
||||||
|
|
|
||||||
|
|
@ -46,12 +46,12 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.dank-material-shell.default.settings = {
|
programs.dank-material-shell.settings = {
|
||||||
# Disables wallpaper management in DMS to avoid conflicts with Hyprpaper
|
# Disables wallpaper management in DMS to avoid conflicts with Hyprpaper
|
||||||
screenPreferences.wallpaper = [];
|
screenPreferences.wallpaper = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.dank-material-shell.default.session = {
|
programs.dank-material-shell.session = {
|
||||||
# Attempt to set a default wallpaper on first run
|
# Attempt to set a default wallpaper on first run
|
||||||
wallpaperPath = unknownPng;
|
wallpaperPath = unknownPng;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf config.fireproof.desktop.enable {
|
config = lib.mkIf config.fireproof.desktop.enable {
|
||||||
fireproof.home-manager = {
|
fireproof.home-manager = {
|
||||||
programs.dank-material-shell.default.settings = {
|
programs.dank-material-shell.settings = {
|
||||||
launcherLogoMode = "os";
|
launcherLogoMode = "os";
|
||||||
launcherLogoContrast = 1;
|
launcherLogoContrast = 1;
|
||||||
launcherLogoSizeOffset = 3;
|
launcherLogoSizeOffset = 3;
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,14 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgsUnstable,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./theme.nix
|
./theme.nix
|
||||||
./background.nix
|
./background.nix
|
||||||
./bar.nix
|
./bar.nix
|
||||||
|
./plugins.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf config.fireproof.desktop.windowManager.enable {
|
config = lib.mkIf config.fireproof.desktop.windowManager.enable {
|
||||||
|
|
@ -25,10 +26,11 @@
|
||||||
enableDynamicTheming = false;
|
enableDynamicTheming = false;
|
||||||
enableVPN = false;
|
enableVPN = false;
|
||||||
enableCalendarEvents = false;
|
enableCalendarEvents = false;
|
||||||
|
dgop.package = pkgsUnstable.dgop; # not available in stable nixpkgs yet (25.11)
|
||||||
|
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
|
|
||||||
default.settings = {
|
settings = {
|
||||||
# General Settings
|
# General Settings
|
||||||
weatherCoordinates = "56.1496278,10.2134046";
|
weatherCoordinates = "56.1496278,10.2134046";
|
||||||
|
|
||||||
|
|
@ -55,21 +57,6 @@
|
||||||
powerMenuDefaultAction = "lock";
|
powerMenuDefaultAction = "lock";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services = {
|
|
||||||
# A hack to always serve fresh settings from default-settings.json
|
|
||||||
dms-clean-settings = {
|
|
||||||
Unit = {
|
|
||||||
Description = "Delete DankMaterialShell settings before dms starts";
|
|
||||||
Before = ["dms.service"];
|
|
||||||
};
|
|
||||||
Service = {
|
|
||||||
Type = "oneshot";
|
|
||||||
ExecStart = "${pkgs.coreutils}/bin/rm -f %h/.config/DankMaterialShell/settings.json";
|
|
||||||
};
|
|
||||||
Install.WantedBy = ["dms.service"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
22
modules/desktop/dms/plugins.nix
Normal file
22
modules/desktop/dms/plugins.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
config = lib.mkIf config.fireproof.desktop.enable {
|
||||||
|
fireproof.home-manager = {
|
||||||
|
imports = [
|
||||||
|
inputs.dms-plugin-registry.modules.default
|
||||||
|
];
|
||||||
|
programs.dank-material-shell.plugins = {
|
||||||
|
emojiLauncher = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -30,7 +30,7 @@ in {
|
||||||
matugen_type = "scheme-expressive";
|
matugen_type = "scheme-expressive";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.dank-material-shell.default.settings = {
|
programs.dank-material-shell.settings = {
|
||||||
# Color theme
|
# Color theme
|
||||||
currentThemeName = "custom";
|
currentThemeName = "custom";
|
||||||
customThemeFile = "/home/${username}/.config/DankMaterialShell/colors.json";
|
customThemeFile = "/home/${username}/.config/DankMaterialShell/colors.json";
|
||||||
|
|
|
||||||
|
|
@ -131,6 +131,10 @@ in {
|
||||||
action.spawn = ["dms" "ipc" "spotlight" "toggle"];
|
action.spawn = ["dms" "ipc" "spotlight" "toggle"];
|
||||||
hotkey-overlay.title = "Toggle Application Launcher";
|
hotkey-overlay.title = "Toggle Application Launcher";
|
||||||
};
|
};
|
||||||
|
"Mod+Semicolon" = {
|
||||||
|
action.spawn = ["dms" "ipc" "spotlight" "toggleQuery" ":"];
|
||||||
|
hotkey-overlay.title = "Toggle Emoji Picker";
|
||||||
|
};
|
||||||
"Mod+P" = {
|
"Mod+P" = {
|
||||||
action.spawn = ["dms" "ipc" "powermenu" "toggle"];
|
action.spawn = ["dms" "ipc" "powermenu" "toggle"];
|
||||||
hotkey-overlay.title = "Toggle Power Menu";
|
hotkey-overlay.title = "Toggle Power Menu";
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ if type -q kubectl
|
||||||
|
|
||||||
alias kns "kubectl config view --minify --output 'jsonpath={..namespace}'"
|
alias kns "kubectl config view --minify --output 'jsonpath={..namespace}'"
|
||||||
abbr ksns "kubectl config set-context --current --namespace"
|
abbr ksns "kubectl config set-context --current --namespace"
|
||||||
abbr ksc "kubectl config set-context"
|
abbr ksc "kubectl config use-context"
|
||||||
|
|
||||||
abbr kexec --function __echo_kubeexec
|
abbr kexec --function __echo_kubeexec
|
||||||
abbr kmanage --function __echo_kubemanage
|
abbr kmanage --function __echo_kubemanage
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,7 @@ in {
|
||||||
"chat.customAgentInSubagent.enabled" = true;
|
"chat.customAgentInSubagent.enabled" = true;
|
||||||
"inlineChat.enableV2" = true;
|
"inlineChat.enableV2" = true;
|
||||||
"chat.viewSessions.orientation" = "vertical";
|
"chat.viewSessions.orientation" = "vertical";
|
||||||
|
"chat.agent.maxRequests" = 100;
|
||||||
|
|
||||||
"chat.tools.terminal.autoApprove" = {
|
"chat.tools.terminal.autoApprove" = {
|
||||||
"nix" = true;
|
"nix" = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue