feat: Added live iso for nix
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
if [ "$(tmux display-message -p -F "#{session_name}")" = "scratch" ];then
|
||||
tmux detach-client
|
||||
else
|
||||
tmux popup -d '#{pane_current_path}' -xC -yC -w$width -h$height -E "tmux attach -t scratch || tmux new -s scratch"
|
||||
tmux popup -d '#{pane_current_path}' -xC -yC -w$width -h$height -E "tmux new -A -s scratch"
|
||||
fi
|
||||
'';
|
||||
in {
|
||||
|
||||
2
flake.lock
generated
2
flake.lock
generated
@@ -1498,7 +1498,7 @@
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1,
|
||||
"narHash": "sha256-JVbSYTJfcy9GUhEuD9PSXvgnHc5QwQIFQkf/xu9r0vI=",
|
||||
"narHash": "sha256-seTVgA8Df4rzadXlItYv3+HWqjeKatFvGSQZI1FViB0=",
|
||||
"path": "./neovim",
|
||||
"type": "path"
|
||||
},
|
||||
|
||||
@@ -102,6 +102,7 @@
|
||||
user = "fs0c131y";
|
||||
hasGui = false; # Don't wan't to run GUI apps on a headless server
|
||||
isServer = true;
|
||||
live = true;
|
||||
}
|
||||
{
|
||||
name = "ryu";
|
||||
@@ -157,6 +158,10 @@
|
||||
if (builtins.hasAttr "monitors" device)
|
||||
then device.monitors
|
||||
else null;
|
||||
live =
|
||||
if (builtins.hasAttr "live" device)
|
||||
then device.live
|
||||
else false;
|
||||
system = device.system;
|
||||
name = device.name;
|
||||
user = device.user;
|
||||
|
||||
@@ -450,7 +450,7 @@ in rec {
|
||||
height = 0.99,
|
||||
width = 0.95,
|
||||
},
|
||||
cmd = "sh -c 'tmux attach -t scratch || tmux new -s scratch'",
|
||||
cmd = "sh -c 'tmux new -As scratch'",
|
||||
blend = 10,
|
||||
})
|
||||
|
||||
@@ -516,9 +516,8 @@ in rec {
|
||||
tmux_show_only_in_active_window = true,
|
||||
}
|
||||
}
|
||||
require("pets").setup({
|
||||
-- your options here
|
||||
})
|
||||
-- require("pets").setup({
|
||||
-- })
|
||||
else
|
||||
vim.o.guifont = "Hasklug Nerd Font Mono:h13"
|
||||
vim.g.neovide_cursor_vfx_mode = "railgun"
|
||||
@@ -676,7 +675,7 @@ in rec {
|
||||
image-nvim
|
||||
ChatGPT-nvim
|
||||
# gp-nvim
|
||||
pets-nvim
|
||||
# pets-nvim
|
||||
|
||||
# UI and UX
|
||||
vim-abolish
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
devices,
|
||||
inputs,
|
||||
overlays,
|
||||
lib,
|
||||
home-manager,
|
||||
nur,
|
||||
...
|
||||
@@ -15,7 +16,8 @@ builtins.listToAttrs (builtins.map (device: {
|
||||
inherit device;
|
||||
lanzaboote = inputs.lanzaboote;
|
||||
};
|
||||
modules = [
|
||||
modules =
|
||||
[
|
||||
nur.nixosModules.nur
|
||||
{nixpkgs.overlays = overlays;}
|
||||
./configuration.nix
|
||||
@@ -33,6 +35,9 @@ builtins.listToAttrs (builtins.map (device: {
|
||||
users.${device.user}.imports = [../common/home.nix];
|
||||
};
|
||||
}
|
||||
]
|
||||
++ lib.optionals device.live [
|
||||
(nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
|
||||
];
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user