mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
use nixOS on libvirt
This commit is contained in:
parent
4e456383ba
commit
6b7c6d529d
6 changed files with 89 additions and 12 deletions
|
|
@ -61,6 +61,14 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixosConfigurations.nixvirt = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
inherit specialArgs;
|
||||||
|
modules = [
|
||||||
|
./hosts/nixvirt
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
darwinConfigurations."zen" = nix-darwin.lib.darwinSystem {
|
darwinConfigurations."zen" = nix-darwin.lib.darwinSystem {
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
inherit specialArgs;
|
inherit specialArgs;
|
||||||
|
|
@ -73,8 +81,6 @@
|
||||||
extraSpecialArgs = specialArgs;
|
extraSpecialArgs = specialArgs;
|
||||||
modules = [
|
modules = [
|
||||||
./users/js0ny
|
./users/js0ny
|
||||||
plasma-manager.homeModules.plasma-manager
|
|
||||||
nix-flatpak.homeManagerModules.nix-flatpak
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
homeConfigurations."js0ny@zephyrus" = home-manager.lib.homeManagerConfiguration {
|
homeConfigurations."js0ny@zephyrus" = home-manager.lib.homeManagerConfiguration {
|
||||||
|
|
@ -86,5 +92,12 @@
|
||||||
nix-flatpak.homeManagerModules.nix-flatpak
|
nix-flatpak.homeManagerModules.nix-flatpak
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
homeConfigurations."js0ny@nixvirt" = home-manager.lib.homeManagerConfiguration {
|
||||||
|
pkgs = forSystem "x86_64-linux";
|
||||||
|
extraSpecialArgs = specialArgs;
|
||||||
|
modules = [
|
||||||
|
./users/js0ny/nixvirt.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
32
nixcfgs/hosts/nixvirt/default.nix
Normal file
32
nixcfgs/hosts/nixvirt/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
# ~/.config/nixcfgs/hosts/nixvirt/default.nix
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
nix-flatpak,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# impure build
|
||||||
|
/etc/nixos/hardware-configuration.nix
|
||||||
|
../../modules/nixos
|
||||||
|
# ../../modules/nixos/users/js0ny.nix
|
||||||
|
# ../../modules/nixos/guest.nix
|
||||||
|
../../modules/nixos/firefox.nix
|
||||||
|
../../modules/nixos/desktop/gnome.nix
|
||||||
|
# ../../modules/nixos/desktop/niri.nix
|
||||||
|
../../modules/nixos/desktop/gnome.nix
|
||||||
|
../../modules/nixos/display-manager/gdm.nix
|
||||||
|
];
|
||||||
|
boot.loader.grub.enable = true;
|
||||||
|
boot.loader.grub.device = "/dev/vda";
|
||||||
|
boot.loader.grub.useOSProber = true;
|
||||||
|
services.qemuGuest.enable = true;
|
||||||
|
services.spice-vdagentd.enable = true;
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
networking.hostName = "nixvirt";
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
}
|
||||||
|
|
@ -3,9 +3,6 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# Use the systemd-boot EFI boot loader.
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
|
|
||||||
security.pam.services.login.enableGnomeKeyring = true;
|
security.pam.services.login.enableGnomeKeyring = true;
|
||||||
|
|
||||||
|
|
|
||||||
13
nixcfgs/modules/nixos/host-machine.nix
Normal file
13
nixcfgs/modules/nixos/host-machine.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
pciutils
|
||||||
|
usbutils
|
||||||
|
smartmontools
|
||||||
|
v4l-utils
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -8,13 +8,6 @@
|
||||||
curl
|
curl
|
||||||
git
|
git
|
||||||
tmux
|
tmux
|
||||||
pciutils
|
|
||||||
usbutils
|
|
||||||
smartmontools
|
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
noto-fonts
|
|
||||||
noto-fonts-cjk-sans
|
|
||||||
noto-fonts-emoji
|
|
||||||
v4l-utils
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
29
nixcfgs/users/js0ny/nixvirt.nix
Normal file
29
nixcfgs/users/js0ny/nixvirt.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# ~/.config/nixcfgs/users/js0ny/default.nix
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
nix-flatpak,
|
||||||
|
plasma-manager,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./default.nix
|
||||||
|
./programs/gnome.nix
|
||||||
|
./programs/shell.nix
|
||||||
|
./programs/git.nix
|
||||||
|
./programs/firefox.nix
|
||||||
|
# ./programs/floorp.nix
|
||||||
|
../../modules/home/gnome-keyrings.nix
|
||||||
|
../../modules/home/dev/nix.nix
|
||||||
|
../../modules/home/dev/python.nix
|
||||||
|
../../modules/home/programs/eza.nix
|
||||||
|
../../modules/home/programs/fzf.nix
|
||||||
|
../../modules/home/programs/lsd.nix
|
||||||
|
../../modules/home/programs/nvim.nix
|
||||||
|
../../modules/home/programs/starship.nix
|
||||||
|
../../modules/home/programs/zoxide.nix
|
||||||
|
# ./flatpak.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home.stateVersion = "25.05";
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue