diff --git a/flake.lock b/flake.lock index f850692..5a6e73d 100644 --- a/flake.lock +++ b/flake.lock @@ -101,11 +101,11 @@ ] }, "locked": { - "lastModified": 1780290312, - "narHash": "sha256-eTAlX0CwgB84Ts3GaBd944A3DRXVMzgA0EqroZBISUo=", + "lastModified": 1781152676, + "narHash": "sha256-RxWs5ND31KzTG7wvMM+PMfUjyNpmIEr999lqNARaM5o=", "owner": "nix-community", "repo": "disko", - "rev": "115e5211780054d8a890b41f0b7734cafad54dfe", + "rev": "ff8702b4de27f72b4c78573dfb89ec74e36abdf1", "type": "github" }, "original": { @@ -209,11 +209,11 @@ ] }, "locked": { - "lastModified": 1780347968, - "narHash": "sha256-I8ibSDQx+E8cgw6k3UxX6Bm7awmGoKSTXc8Gt1Zbpp4=", + "lastModified": 1781810163, + "narHash": "sha256-dk8lIk0UnO8GD3e7e3HM1vSYXpbEDmhy67w7KztfdCg=", "owner": "nix-community", "repo": "home-manager", - "rev": "d0af9b8bf3b4a1d449be7034bebc9f8f9fd6ee99", + "rev": "c8f0b8ed441c95bfeaf33555e7631044bb09f384", "type": "github" }, "original": { @@ -264,11 +264,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1780296985, - "narHash": "sha256-eFz7gDmf18dlofE6kjIBBBDOfsntQxiLkfjF8ldTB7k=", + "lastModified": 1781680261, + "narHash": "sha256-7GAXGsOV/rTxJ24AD7nbWDILw2Ed7VNkFZgrcCZ+Cpg=", "owner": "nix-community", "repo": "nixos-facter", - "rev": "8518390032e04a01ccef734ba2d3239786209cbe", + "rev": "a1b46c2aeb223685741871ed1b0ebed17e154b13", "type": "github" }, "original": { @@ -294,11 +294,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1780243769, - "narHash": "sha256-x5UQuRsH3MqI0U9afaXSNqzTPSeZlRLvFAav2Ux1pNw=", + "lastModified": 1781577229, + "narHash": "sha256-lrp67w8AulE9Ks53n27I45ADSzbOCn4H+CNW1Ck8B+8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "331800de5053fcebacf6813adb5db9c9dca22a0c", + "rev": "567a49d1913ce81ac6e9582e3553dd90a955875f", "type": "github" }, "original": { @@ -335,11 +335,11 @@ ] }, "locked": { - "lastModified": 1779766384, - "narHash": "sha256-P7Ohnlq8b8b2fU+Sgkrej7LBTM60LBTkHleLuYzmLmU=", + "lastModified": 1780281641, + "narHash": "sha256-M/+hUKoKbHXpV0xGVfELbN1Ds1aoe3pL5p5/t46YhVo=", "owner": "nix-community", "repo": "NUR", - "rev": "57800b7ab648725ccd33551d01484ee14952ad3f", + "rev": "30f9ae2f04174de63ba8bcf3580ca90843b28a01", "type": "github" }, "original": { @@ -380,11 +380,11 @@ "tinted-zed": "tinted-zed" }, "locked": { - "lastModified": 1780256506, - "narHash": "sha256-wEXN/OoZt9HfsKBL6694p2Y9xRlwfUbdn/M107U8fVU=", + "lastModified": 1781018772, + "narHash": "sha256-C+cGIUaC6dqfwTbI+BwCd572PbESGA3WYxR1sLTqxkY=", "owner": "nix-community", "repo": "stylix", - "rev": "8ed48a41087feeb66372ff718021a9512fc552b3", + "rev": "a378e4c09031fb15a4d65da88aa628f71fc52f6b", "type": "github" }, "original": { diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 3d9b151..d777028 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -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; diff --git a/modules/home-manager/gtk/gtk4/module.nix b/modules/home-manager/gtk/gtk4/module.nix deleted file mode 100644 index 241b399..0000000 --- a/modules/home-manager/gtk/gtk4/module.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ - config, - ... -}: -{ - config = { - # Preserve the legacy behaviour of home-manager < 26.05. This requires that - # the theme declared on `config.gtk.theme` is compatible with GTK4. - gtk.gtk4.theme = config.gtk.theme; - }; -} \ No newline at end of file diff --git a/modules/home-manager/my/programs/neovim/package.nix b/modules/home-manager/my/programs/neovim/package.nix index c86e635..8dda9ee 100644 --- a/modules/home-manager/my/programs/neovim/package.nix +++ b/modules/home-manager/my/programs/neovim/package.nix @@ -1,6 +1,5 @@ { lib, - neovimUtils, wrapNeovimUnstable, neovim-unwrapped, @@ -10,7 +9,7 @@ plugins, config, }: -wrapNeovimUnstable neovim-unwrapped (neovimUtils.makeNeovimConfig { +wrapNeovimUnstable neovim-unwrapped { # withPython3 = true; # withNodeJs = false; # withRuby = true; @@ -18,10 +17,9 @@ wrapNeovimUnstable neovim-unwrapped (neovimUtils.makeNeovimConfig { inherit plugins; wrapRc = false; -} // { wrapperArgs = lib.escapeShellArgs [ "--prefix" "PATH" ":" "${lib.makeBinPath bins}" "--add-flags" "-u" "--add-flags" "${config}" ]; -}) \ No newline at end of file +} \ No newline at end of file diff --git a/modules/nixos/programs/virt-manager/module.nix b/modules/nixos/programs/virt-manager/module.nix new file mode 100644 index 0000000..d33118b --- /dev/null +++ b/modules/nixos/programs/virt-manager/module.nix @@ -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 + ]; + }; + }; +} \ No newline at end of file diff --git a/users/frontear/home/programs/neovim/default.nix b/users/frontear/home/programs/neovim/default.nix index d9f5f97..dd36648 100644 --- a/users/frontear/home/programs/neovim/default.nix +++ b/users/frontear/home/programs/neovim/default.nix @@ -90,6 +90,10 @@ end, }, + mapping = cmp.mapping.preset.insert({ + [''] = cmp.mapping.abort(), + }), + sources = cmp.config.sources({ { name = "luasnip" }, { name = "nvim_lsp" }, diff --git a/users/frontear/nixos/default.nix b/users/frontear/nixos/default.nix index 1afd6fb..7a91494 100644 --- a/users/frontear/nixos/default.nix +++ b/users/frontear/nixos/default.nix @@ -3,7 +3,11 @@ lib, ... }: -{ +let + inherit (lib) + optional + ; +in { imports = [ ./per-host.nix ./shell.nix @@ -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.