mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Separate hm from os config
This commit is contained in:
parent
0630cf387c
commit
78d8069a88
6 changed files with 30 additions and 24 deletions
|
|
@ -8,5 +8,7 @@
|
|||
./equalizer
|
||||
./sops.nix
|
||||
./night-light.nix
|
||||
./virtualisation.nix
|
||||
./flatpak.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
14
modules/home/flatpak.nix
Normal file
14
modules/home/flatpak.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.myConfig.flatpak.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.flatpak.enable {
|
||||
xdg = {
|
||||
enable = true;
|
||||
systemDirs.data = [
|
||||
"/var/lib/flatpak/exports/share"
|
||||
"/home/seb/.local/share/flatpak/exports/share"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
11
modules/home/virtualisation.nix
Normal file
11
modules/home/virtualisation.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.myConfig.virtualisation.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.virtualisation.enable {
|
||||
dconf.settings."org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = [ "qemu:///system" ];
|
||||
uris = [ "qemu:///system" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue