Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions hosts/laptop/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

hardware.openrazer.enable = true;

programs.virt-manager.enable = true;

services = {
# NTP daemon that's more suitable for laptops
chrony.enable = true;
Expand Down
11 changes: 0 additions & 11 deletions modules/home-manager/gtk/gtk4/module.nix

This file was deleted.

6 changes: 2 additions & 4 deletions modules/home-manager/my/programs/neovim/package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
lib,
neovimUtils,
wrapNeovimUnstable,

neovim-unwrapped,
Expand All @@ -10,18 +9,17 @@
plugins,
config,
}:
wrapNeovimUnstable neovim-unwrapped (neovimUtils.makeNeovimConfig {
wrapNeovimUnstable neovim-unwrapped {
# withPython3 = true;
# withNodeJs = false;
# withRuby = true;

inherit plugins;

wrapRc = false;
} // {
wrapperArgs = lib.escapeShellArgs [
"--prefix" "PATH" ":" "${lib.makeBinPath bins}"
"--add-flags" "-u"
"--add-flags" "${config}"
];
})
}
20 changes: 20 additions & 0 deletions modules/nixos/programs/virt-manager/module.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.virt-manager;
in {
config = lib.mkIf cfg.enable {
virtualisation.libvirtd = {
enable = true;

# Enable the ability to share a folder with a guest.
qemu.vhostUserPackages = with pkgs; [
virtiofsd
];
};
};
}
4 changes: 4 additions & 0 deletions users/frontear/home/programs/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@
end,
},

mapping = cmp.mapping.preset.insert({
['<Esc>'] = cmp.mapping.abort(),
}),

sources = cmp.config.sources({
{ name = "luasnip" },
{ name = "nvim_lsp" },
Expand Down
9 changes: 7 additions & 2 deletions users/frontear/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
lib,
...
}:
{
let
inherit (lib)
optional
;
in {
imports = [
./per-host.nix
./shell.nix
Expand All @@ -14,7 +18,8 @@
initialHashedPassword = "$y$j9T$gsXwh6NJa62APePZ.7xR00$lLYi86UgQdN1yjOIgqcegfTKsnqkXI4ufQHWdOTiKr6";

extraGroups = [ "wheel" ] ++
(lib.optional config.networking.networkmanager.enable "networkmanager");
(optional config.networking.networkmanager.enable "networkmanager") ++
(optional config.programs.virt-manager.enable "libvirtd");
};

# Allow my user to control the OpenRazer daemon.
Expand Down
Loading