mirror of
				https://github.com/materusPL/nixos-config
				synced 2025-11-04 06:20:27 +01:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			8fda1956a1
			...
			170cc0fc10
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 170cc0fc10 | |||
| 20683564ce | 
@ -4,8 +4,10 @@
 | 
			
		||||
  home.homeDirectory = "/home/materus";
 | 
			
		||||
 | 
			
		||||
  programs.git.signing.signByDefault = true;
 | 
			
		||||
  xdg.portal.enable = true;
 | 
			
		||||
  
 | 
			
		||||
  xdg.userDirs.enable = true;
 | 
			
		||||
  xdg.portal.enable = true;
 | 
			
		||||
  xdg.portal.xdgOpenUsePortal = true;
 | 
			
		||||
  xdg.portal.extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ];
 | 
			
		||||
  xdg.portal.configPackages = [ pkgs.kdePackages.xdg-desktop-portal-kde ];
 | 
			
		||||
  materus.profile = {
 | 
			
		||||
 | 
			
		||||
@ -1,13 +1,20 @@
 | 
			
		||||
{ config, pkgs, lib, ... }:
 | 
			
		||||
let
 | 
			
		||||
  westonSddm = pkgs.writeText "weston.ini"
 | 
			
		||||
  westonSddm = let xcfg = config.services.xserver; in  pkgs.writeText "weston.ini"
 | 
			
		||||
    ''
 | 
			
		||||
      [core]
 | 
			
		||||
      xwayland=true
 | 
			
		||||
      xwayland=false
 | 
			
		||||
      shell=fullscreen-shell.so
 | 
			
		||||
 | 
			
		||||
      [keyboard]
 | 
			
		||||
      keymap_layout=pl
 | 
			
		||||
      keymap_model = ${builtins.toString xcfg.xkb.model};
 | 
			
		||||
      keymap_layout = ${builtins.toString xcfg.xkb.layout};
 | 
			
		||||
      keymap_variant = ${builtins.toString xcfg.xkb.variant};
 | 
			
		||||
      keymap_options = ${builtins.toString xcfg.xkb.options};
 | 
			
		||||
 | 
			
		||||
      [libinput]
 | 
			
		||||
      enable-tap = ${builtins.toString xcfg.libinput.mouse.tapping};
 | 
			
		||||
      left-handed = ${builtins.toString xcfg.libinput.mouse.leftHanded};
 | 
			
		||||
 | 
			
		||||
      [output]
 | 
			
		||||
      name=DP-3
 | 
			
		||||
@ -20,25 +27,28 @@ let
 | 
			
		||||
      [output]
 | 
			
		||||
      name=HDMI-A-3
 | 
			
		||||
      mode=off
 | 
			
		||||
    ''
 | 
			
		||||
  ;
 | 
			
		||||
 | 
			
		||||
    '';
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  services.xserver.displayManager.defaultSession = "plasma";
 | 
			
		||||
  services.xserver.displayManager.sddm.enable = true;
 | 
			
		||||
  services.xserver.displayManager.sddm.wayland.enable = true;
 | 
			
		||||
  services.xserver.displayManager.sddm.wayland.compositor = lib.mkForce "weston";
 | 
			
		||||
  services.xserver.displayManager.sddm.wayland.compositorCommand = lib.concatStringsSep " " [
 | 
			
		||||
    "${lib.getExe pkgs.weston}"
 | 
			
		||||
    "--shell=kiosk"
 | 
			
		||||
    "-c ${westonSddm}"
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  services.xserver.displayManager.sddm.settings = {
 | 
			
		||||
    General = {
 | 
			
		||||
      #DisplayServer = "wayland";
 | 
			
		||||
      InputMethod = "";
 | 
			
		||||
    };
 | 
			
		||||
    Theme = {
 | 
			
		||||
      CursorTheme = "breeze_cursors";
 | 
			
		||||
      CursorSize = "24";
 | 
			
		||||
    };
 | 
			
		||||
    Wayland = {
 | 
			
		||||
      #CompositorCommand = "${pkgs.weston}/bin/weston  -c ${westonSddm}";
 | 
			
		||||
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  services.desktopManager.plasma6.enable = true;
 | 
			
		||||
  services.desktopManager.plasma6.enableQt5Integration = true;
 | 
			
		||||
 | 
			
		||||
@ -27,6 +27,7 @@
 | 
			
		||||
 | 
			
		||||
  time.timeZone = "Europe/Warsaw";
 | 
			
		||||
  i18n.defaultLocale = "pl_PL.UTF-8";
 | 
			
		||||
  services.xserver.xkb.layout = "pl";
 | 
			
		||||
  console = {
 | 
			
		||||
    font = "lat2-16";
 | 
			
		||||
    #     keyMap = "pl";
 | 
			
		||||
 | 
			
		||||
@ -10,25 +10,29 @@
 | 
			
		||||
    let
 | 
			
		||||
      cfg = config.materus.profile.xdg;
 | 
			
		||||
    in
 | 
			
		||||
    lib.mkIf cfg.enable { 
 | 
			
		||||
    lib.mkIf cfg.enable {
 | 
			
		||||
      xdg.enable = true;
 | 
			
		||||
      xdg.portal.enable = lib.mkDefault false;
 | 
			
		||||
      xdg.portal.xdgOpenUsePortal = lib.mkDefault config.xdg.portal.enable;
 | 
			
		||||
      
 | 
			
		||||
 | 
			
		||||
      xdg.userDirs.enable = lib.mkDefault true;
 | 
			
		||||
      xdg.userDirs.createDirectories = lib.mkDefault config.xdg.userDirs.enable;
 | 
			
		||||
 | 
			
		||||
      xdg.userDirs.desktop = lib.mkDefault "${config.home.homeDirectory}/Pulpit";
 | 
			
		||||
      xdg.userDirs.documents = lib.mkDefault "${config.home.homeDirectory}/Dokumenty";
 | 
			
		||||
      xdg.userDirs.download = lib.mkDefault "${config.home.homeDirectory}/Pobrane";
 | 
			
		||||
      xdg.userDirs.music = lib.mkDefault "${config.home.homeDirectory}/Muzyka";
 | 
			
		||||
      xdg.userDirs.music = lib.mkDefault "${config.xdg.userDirs.extraConfig.XDG_AUDIO_DIR}/Muzyka";
 | 
			
		||||
      xdg.userDirs.pictures = lib.mkDefault "${config.home.homeDirectory}/Obrazy";
 | 
			
		||||
      xdg.userDirs.publicShare = lib.mkDefault "${config.home.homeDirectory}/Publiczny";
 | 
			
		||||
      xdg.userDirs.templates = lib.mkDefault "${config.home.homeDirectory}/Szablony";
 | 
			
		||||
      xdg.userDirs.videos = lib.mkDefault "${config.home.homeDirectory}/Wideo";
 | 
			
		||||
      xdg.userDirs.extraConfig = {
 | 
			
		||||
        XDG_MISC_DIR = lib.mkDefault "${config.home.homeDirectory}/Inne";
 | 
			
		||||
        XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Zrzuty ekranu";
 | 
			
		||||
        XDG_PIC_SCREENSHOTS_DIR = lib.mkDefault "${config.xdg.userDirs.pictures}/Zrzuty ekranu";
 | 
			
		||||
        XDG_PIC_MEMES_DIR = lib.mkDefault "${config.xdg.userDirs.pictures}/Memy";
 | 
			
		||||
        XDG_PIC_MISC_DIR = lib.mkDefault "${config.xdg.userDirs.pictures}/Inne";
 | 
			
		||||
        XDG_PIC_PHOTOS_DIR = lib.mkDefault "${config.xdg.userDirs.pictures}/Zdjęcia";
 | 
			
		||||
        XDG_PIC_AVATARS_DIR = "${config.xdg.userDirs.pictures}/Avatar";
 | 
			
		||||
        XDG_AUDIO_DIR = lib.mkDefault "${config.home.homeDirectory}/Audio";
 | 
			
		||||
        XDG_KEYS_DIR = lib.mkDefault "${config.xdg.userDirs.documents}/Klucze";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user