Compare commits
2 Commits
38cdcebddd
...
baeb10a48e
| Author | SHA1 | Date | |
|---|---|---|---|
|
baeb10a48e
|
|||
|
315de3696a
|
@@ -16,51 +16,54 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = lib.mkMerge [
|
||||||
# only disable when stylix is present (loaded by desktop feature)
|
(lib.optionalAttrs (options ? stylix) {
|
||||||
stylix.targets.neovim.enable = lib.mkIf (options ? stylix) false;
|
# disable stylix neovim target when stylix is present (loaded by desktop feature)
|
||||||
|
stylix.targets.neovim.enable = false;
|
||||||
|
})
|
||||||
|
{
|
||||||
|
xdg.configFile."nvim" = lib.mkIf (config.neovim.dotfiles != null) {
|
||||||
|
source = config.neovim.dotfiles;
|
||||||
|
};
|
||||||
|
|
||||||
xdg.configFile."nvim" = lib.mkIf (config.neovim.dotfiles != null) {
|
programs.neovim = {
|
||||||
source = config.neovim.dotfiles;
|
enable = true;
|
||||||
};
|
vimAlias = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
package = inputs.neovim-nightly-overlay.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||||
|
|
||||||
programs.neovim = {
|
extraPackages = with pkgs; [
|
||||||
enable = true;
|
gcc
|
||||||
vimAlias = true;
|
luajit
|
||||||
defaultEditor = true;
|
nodejs_22
|
||||||
package = inputs.neovim-nightly-overlay.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
tree-sitter
|
||||||
|
gnumake
|
||||||
|
osc
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
fd
|
||||||
gcc
|
ripgrep
|
||||||
luajit
|
bat
|
||||||
nodejs_22
|
delta
|
||||||
tree-sitter
|
|
||||||
gnumake
|
|
||||||
osc
|
|
||||||
|
|
||||||
fd
|
pyright
|
||||||
ripgrep
|
typescript-language-server
|
||||||
bat
|
lua-language-server
|
||||||
delta
|
gopls
|
||||||
|
nil
|
||||||
|
nixd
|
||||||
|
|
||||||
pyright
|
nixpkgs-fmt
|
||||||
typescript-language-server
|
stylua
|
||||||
lua-language-server
|
];
|
||||||
gopls
|
|
||||||
nil
|
|
||||||
nixd
|
|
||||||
|
|
||||||
nixpkgs-fmt
|
extraWrapperArgs = [
|
||||||
stylua
|
"--suffix"
|
||||||
];
|
"LD_LIBRARY_PATH"
|
||||||
|
":"
|
||||||
extraWrapperArgs = [
|
"${lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ]}"
|
||||||
"--suffix"
|
];
|
||||||
"LD_LIBRARY_PATH"
|
};
|
||||||
":"
|
}
|
||||||
"${lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ]}"
|
];
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ in
|
|||||||
nixos =
|
nixos =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
users.users.matej = {
|
users.users.matej = {
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ in
|
|||||||
# nixos-rebuild build-image --image-variant install-iso --flake .#iso
|
# nixos-rebuild build-image --image-variant install-iso --flake .#iso
|
||||||
iso = mkHost "iso" {
|
iso = mkHost "iso" {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
user = "matej";
|
||||||
features = [
|
features = [
|
||||||
"openssh"
|
"openssh"
|
||||||
];
|
];
|
||||||
@@ -84,6 +85,8 @@ in
|
|||||||
"vm-9p-automount"
|
"vm-9p-automount"
|
||||||
"docker"
|
"docker"
|
||||||
"neovim"
|
"neovim"
|
||||||
|
"claude"
|
||||||
|
"dev"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,32 +1,11 @@
|
|||||||
{
|
_: {
|
||||||
userKeys,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
image.modules.iso-installer = {
|
image.modules.iso-installer = {
|
||||||
isoImage.squashfsCompression = "zstd -Xcompression-level 6";
|
isoImage.squashfsCompression = "zstd -Xcompression-level 6";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
# live iso: passwordless login and sudo
|
||||||
|
users.users.matej.initialHashedPassword = "";
|
||||||
users = {
|
security.sudo.wheelNeedsPassword = false;
|
||||||
groups.matej = {
|
|
||||||
gid = 1000;
|
|
||||||
};
|
|
||||||
users.matej = {
|
|
||||||
group = "matej";
|
|
||||||
uid = 1000;
|
|
||||||
isNormalUser = true;
|
|
||||||
home = "/home/matej";
|
|
||||||
createHome = true;
|
|
||||||
password = "burek123";
|
|
||||||
extraGroups = [
|
|
||||||
"wheel"
|
|
||||||
"users"
|
|
||||||
];
|
|
||||||
openssh.authorizedKeys.keys = userKeys.sshAuthorizedKeys or [ ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user