File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
nixos/profiles/graphical/desktopManagers
systems/x86_64-nixos/testvm Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 99let
1010 inherit ( lib . modules ) mkIf ;
1111 inherit ( self . lib . programs ) mkProgram ;
12- inherit ( self . lib . validators ) hasProfile ;
12+ inherit ( self . lib . validators ) isWayland hasProfile ;
1313
1414 cfg = config . nixfiles . programs . gui . niri ;
1515in
1616{
1717 options . nixfiles . programs . gui = {
1818 niri = mkProgram pkgs "niri" {
19- enable . default = config . nixfiles . programs . gui . enable && ( hasProfile osConfig [ "laptop" ] ) ;
19+ enable . default =
20+ config . nixfiles . programs . gui . enable
21+ && ( hasProfile osConfig [ "laptop" ] )
22+ && ( hasProfile osConfig [ "graphical" ] )
23+ && ( isWayland osConfig ) ;
2024 } ;
2125 } ;
2226
Original file line number Diff line number Diff line change 1313 config =
1414 mkIf ( ( hasProfile config [ "graphical" ] ) && ( hasProfile config [ "laptop" ] ) && ( isWayland config ) )
1515 {
16- programs = {
17- niri . enable = true ;
18- niri . package = pkgs . niri-unstable ;
16+ programs . niri = {
17+ enable = true ;
18+ package = pkgs . niri-unstable ;
1919 } ;
2020 } ;
2121}
Original file line number Diff line number Diff line change 1414 nixfiles = {
1515 device . profiles = [
1616 "vm"
17- # "desktop"
18- "headless"
17+ "desktop"
18+ # FIXME: non graphical appears broken because of niri & stylix?
19+ # "headless"
1920 ] ;
2021 virtualisation . incus . enable = true ;
2122 storage = {
2223 type = "btrfs" ;
2324 mainDevice = "/dev/vda" ;
2425 impermanence . enable = true ;
2526 } ;
26- # FIXME: some issues with the headless profile?
27- system . boot . plymouth = false ;
2827 } ;
2928
3029 disko . memSize = 8096 ;
You can’t perform that action at this time.
0 commit comments