diff --git a/flake.lock b/flake.lock index f850692..8ca26a2 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": { @@ -135,11 +135,11 @@ "nixpkgs-lib": "nixpkgs-lib" }, "locked": { - "lastModified": 1778716662, - "narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=", + "lastModified": 1782949081, + "narHash": "sha256-vp6Y/Grm98ESt6ceOkWiHWyZRDV3J1RID4w+6NWK9yA=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb", + "rev": "17c9d6cdfc60c64f4ee8d306f9bc0b4ccb51481e", "type": "github" }, "original": { @@ -209,11 +209,11 @@ ] }, "locked": { - "lastModified": 1780347968, - "narHash": "sha256-I8ibSDQx+E8cgw6k3UxX6Bm7awmGoKSTXc8Gt1Zbpp4=", + "lastModified": 1783222121, + "narHash": "sha256-E/ElL373TO8lQ2aMvYyzN+k4xkVaUGoRqoa8AtM71tI=", "owner": "nix-community", "repo": "home-manager", - "rev": "d0af9b8bf3b4a1d449be7034bebc9f8f9fd6ee99", + "rev": "a1645f40777620c4bd2b6d854b290c2fc354a266", "type": "github" }, "original": { @@ -264,11 +264,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1780296985, - "narHash": "sha256-eFz7gDmf18dlofE6kjIBBBDOfsntQxiLkfjF8ldTB7k=", + "lastModified": 1783231484, + "narHash": "sha256-OMgDqmK66UFINnPhQT5MXfAK8j7NCFx80fe/mctSLiU=", "owner": "nix-community", "repo": "nixos-facter", - "rev": "8518390032e04a01ccef734ba2d3239786209cbe", + "rev": "c8f122ac1f4507419894e2f78c2525c292553908", "type": "github" }, "original": { @@ -294,11 +294,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1780243769, - "narHash": "sha256-x5UQuRsH3MqI0U9afaXSNqzTPSeZlRLvFAav2Ux1pNw=", + "lastModified": 1783224372, + "narHash": "sha256-8i/87eeoqiGE4yOTjwSA3Eh/ziJRQEmd/unYU+K27sk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "331800de5053fcebacf6813adb5db9c9dca22a0c", + "rev": "d407951447dcd00442e97087bf374aad70c04cea", "type": "github" }, "original": { @@ -310,11 +310,11 @@ }, "nixpkgs-lib": { "locked": { - "lastModified": 1777168982, - "narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=", + "lastModified": 1782614948, + "narHash": "sha256-ePjCwr1sNm9NYUqywL7QfK3JnlS015msC+eBu2zKlp8=", "owner": "nix-community", "repo": "nixpkgs.lib", - "rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14", + "rev": "db3f255737b94216eb71cce308e2912cf6bc2d7c", "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": 1783101802, + "narHash": "sha256-/Ti+wDco0f3C9s94RxyBKJyc0BklwYh0a/jFWKeHNYw=", "owner": "nix-community", "repo": "stylix", - "rev": "8ed48a41087feeb66372ff718021a9512fc552b3", + "rev": "718c14e8ecba215a65ff955c187fadb9732ddd01", "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/pkgs/nix-benchmark/nix/package.nix b/pkgs/nix-benchmark/nix/package.nix index 91b0f38..94e513f 100644 --- a/pkgs/nix-benchmark/nix/package.nix +++ b/pkgs/nix-benchmark/nix/package.nix @@ -21,8 +21,6 @@ stdenvNoCC.mkDerivation { env = { nixBins = lib.escapeShellArgs (map lib.getExe [ - nixVersions.nix_2_28 - nixVersions.nix_2_30 nixVersions.nix_2_31 nixVersions.nix_2_34 nixVersions.git 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.