Skip to content

Commit

Permalink
add sven to srv-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Svenum committed Oct 29, 2024
1 parent 07c6a3a commit 422c99b
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 19 deletions.
14 changes: 2 additions & 12 deletions homes/x86_64-linux/sven@Yon/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
{ pkgs, lib, host, systemConfig, ... }:
{ pkgs, ... }:

let
enableNixVirt = if host == "Yon" then true else false;
isYon = host == "Yon";
issrv-nixostest = host == "srv-nixostest";
in
{
holynix.desktop = {
plasma = {
enable = true;
cursorFlavour = "latte";
cpuRange =if isYon then
1600
else if issrv-nixostest then
400
else
100;
cpuRange = 1600;
launchers = [
"applications:org.kde.dolphin.desktop"
"preferred://browser"
Expand Down
27 changes: 27 additions & 0 deletions homes/x86_64-linux/sven@srv-dev/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ pkgs, ... }:

{
holynix.desktop = {
plasma = {
enable = true;
cursorFlavour = "latte";
cpuRange = 400;
launchers = [
"applications:org.kde.dolphin.desktop"
"preferred://browser"
];
enableGPUSensor = false;
};
};

home.shellAliases = {
"pc" = "podman compose";
};
programs.zsh.enable = true;
# Add extgra packages
home.packages = with pkgs; [
#nix config
attic-client
sops
];
}
7 changes: 2 additions & 5 deletions modules/home/desktop/plasma/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,15 @@ in
};
};
}
(if cfg.enableGPUSensor then
{
(mkIf cfg.enableGPUSensor {
name = "org.kde.plasma.systemmonitor";
config = {
Sensors = {
highPrioritySensorIds = ''[\"gpu/all/usage\"]'';
totalSensors = ''[\"gpu/all/usage\"]'';
};
};
}
else
{})
})
{
name = "org.kde.plasma.panelspacer";
config = {
Expand Down
2 changes: 1 addition & 1 deletion systems/x86_64-linux/PC-Carmen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
isGuiUser = true;
isSudoUser = true;
authorizedKeys = [
"ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBABz8jUkUacu8PahA+mlDCCp3780yrcpAcNZIJ1CFswAbgbWoK+FZxdQ3P43X4cBjKVtz8tthf4xHhkGe6eNC1+ofgHq5bXfIP15ba7AEncdUvreQzPx2Aao7yZFw94piTiZqlQA193SZTw8ggbYPwn3hnXkFT/6ttIEr+18xUMGFM9c1A== sven@Ni"
"ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBABz8jUkUacu8PahA+mlDCCp3780yrcpAcNZIJ1CFswAbgbWoK+FZxdQ3P43X4cBjKVtz8tthf4xHhkGe6eNC1+ofgHq5bXfIP15ba7AEncdUvreQzPx2Aao7yZFw94piTiZqlQA193SZTw8ggbYPwn3hnXkFT/6ttIEr+18xUMGFM9c1A=="
];
};
};
Expand Down
2 changes: 1 addition & 1 deletion systems/x86_64-linux/Zeta/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
isSudoUser = true;
uid = 1000;
authorizedKeys = [
"ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBABz8jUkUacu8PahA+mlDCCp3780yrcpAcNZIJ1CFswAbgbWoK+FZxdQ3P43X4cBjKVtz8tthf4xHhkGe6eNC1+ofgHq5bXfIP15ba7AEncdUvreQzPx2Aao7yZFw94piTiZqlQA193SZTw8ggbYPwn3hnXkFT/6ttIEr+18xUMGFM9c1A== sven@Ni"
"ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBABz8jUkUacu8PahA+mlDCCp3780yrcpAcNZIJ1CFswAbgbWoK+FZxdQ3P43X4cBjKVtz8tthf4xHhkGe6eNC1+ofgHq5bXfIP15ba7AEncdUvreQzPx2Aao7yZFw94piTiZqlQA193SZTw8ggbYPwn3hnXkFT/6ttIEr+18xUMGFM9c1A=="
];
};
};
Expand Down
3 changes: 3 additions & 0 deletions systems/x86_64-linux/srv-dev/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
userName = "Svenum";
userEmail = "[email protected]";
};
authorizedKeys = [
"ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBABz8jUkUacu8PahA+mlDCCp3780yrcpAcNZIJ1CFswAbgbWoK+FZxdQ3P43X4cBjKVtz8tthf4xHhkGe6eNC1+ofgHq5bXfIP15ba7AEncdUvreQzPx2Aao7yZFw94piTiZqlQA193SZTw8ggbYPwn3hnXkFT/6ttIEr+18xUMGFM9c1A=="
];
};
"sudouser" = {
isGuiUser = true;
Expand Down

0 comments on commit 422c99b

Please sign in to comment.