preparation for qemu server testing
This commit is contained in:
parent
1fdf900886
commit
cf9c5917af
6 changed files with 48 additions and 32 deletions
|
|
@ -1,14 +1,22 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
programs.niri.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
environment.systemPackages = [ pkgs.qemu ];
|
||||
imports = [ ../common.nix ./hardware.nix ];
|
||||
boot.kernelParams = [ "hibernate.compressor=lz4" ];
|
||||
programs = {
|
||||
niri.enable = true;
|
||||
virt-manager.enable = true;
|
||||
};
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
qemu.swtpm.enable = true;
|
||||
};
|
||||
users.users.bogale = {
|
||||
uid = 1551;
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
hashedPasswordFile = "/secrets/user/bogale-pw";
|
||||
extraGroups = [ "wheel" "libvirtd" "networkmanager" ];
|
||||
};
|
||||
networking = {
|
||||
hostName = "nixos-desktop";
|
||||
|
|
@ -17,11 +25,28 @@
|
|||
configFile = "/secrets/awg/2.conf";
|
||||
address = [ "10.0.0.3/32" "fc00::3/128" ];
|
||||
};
|
||||
networkmanager.ensureProfiles.profiles.wifi = {
|
||||
wifi.ssid = "bogale_5";
|
||||
ipv6.addresses = "fc01::3/64";
|
||||
ipv4.addresses = "10.1.0.3/16";
|
||||
wifi-security.psk = "$BOGALE_5_PSK";
|
||||
networkmanager.ensureProfiles.profiles = {
|
||||
dhcp-eth.connection = {
|
||||
id = "dhcp-eth";
|
||||
type = "ethernet";
|
||||
};
|
||||
home-wifi = {
|
||||
wifi.ssid = "bogale_5";
|
||||
ipv6.addresses = "fc01::3/64";
|
||||
ipv4.addresses = "10.1.0.3/16";
|
||||
wifi-security.psk = "$BOGALE_5_PSK";
|
||||
};
|
||||
phone-wifi = {
|
||||
wifi.ssid = "Hello world";
|
||||
connection = {
|
||||
type = "wifi";
|
||||
id = "phone-wifi";
|
||||
};
|
||||
wifi-security = {
|
||||
key-mgmt = "sae";
|
||||
psk = "$HELLO_WORLD_PSK";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
services = {
|
||||
|
|
@ -40,7 +65,7 @@
|
|||
enable = true;
|
||||
settings.default_session = {
|
||||
user = "greeter";
|
||||
command = "${pkgs.noctalia-greeter}/bin/noctalia-greeter-session -- --session niri --user bogale";
|
||||
command = "${pkgs.noctalia-greeter}/bin/noctalia-greeter-session";
|
||||
};
|
||||
};
|
||||
displayManager.noctalia-greeter = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue