diff --git a/SwarselSystems.org b/SwarselSystems.org index 43c34a8..9e780ba 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -2193,14 +2193,22 @@ My work machine. workspace = "1:一"; output = "DP-11"; }; - workdesktop = { + work_back_middle = { name = "LG Electronics LG Ultra HD 0x000305A6"; mode = "2560x1440"; scale = "1"; - position = "0,0"; + position = "5120,0"; workspace = "1:一"; output = "DP-10"; }; + work_front_left = { + name = "LG Electronics LG Ultra HD 0x0007AB45"; + mode = "3840x2160"; + scale = "1"; + position = "5120,0"; + workspace = "1:一"; + output = "DP-7"; + }; }; inputs = { "12972:18:Framework_Laptop_16_Keyboard_Module_-_ANSI_Keyboard" = { @@ -2216,6 +2224,7 @@ My work machine. }; }; keybindings = { + "Mod4+Ctrl+p" = "exec wl-mirror eDP-2"; }; }; } @@ -7825,6 +7834,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se lib.recursiveUpdate { "${modifier}+q" = "kill"; "${modifier}+f" = "exec firefox"; + "${modifier}+Shift+f" = "exec swaymsg fullscreen"; "${modifier}+Space" = "exec fuzzel"; "${modifier}+Shift+Space" = "floating toggle"; "${modifier}+e" = "exec emacsclient -nquc -a emacs -e \"(dashboard-open)\""; diff --git a/index.html b/index.html index 869724b..1900bdd 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + SwarselSystems: NixOS + Emacs Configuration @@ -211,6 +211,7 @@
  • 2.1.3. Waybar items - PC
  • 2.1.4. Sway Startup commands
  • 2.1.5. gpg-agent
  • +
  • 2.1.6. firefox profile
  • 2.2. NixOS @@ -223,7 +224,7 @@
  • -
  • 3.2. Overlays, packages, and modules +
  • 3.2. Overlays, packages, and modules
  • -
  • 3.3. NixOS +
  • 3.3. NixOS
  • -
  • 3.4. Home-manager +
  • 3.4. Home-manager
  • 3.5. flake.nix template @@ -310,7 +311,7 @@ @@ -687,6 +688,87 @@ I also enable the extra socket here for ssh agent forwarding. But I have not ful
     
    +
    +
    + + +
    +

    2.1.6. firefox profile

    +
    +
    +
    +isDefault = false;
    +userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
    +extensions = with pkgs.nur.repos.rycee.firefox-addons; [
    +  tridactyl
    +  browserpass
    +  clearurls
    +  darkreader
    +  enhancer-for-youtube
    +  istilldontcareaboutcookies
    +  translate-web-pages
    +  ublock-origin
    +  reddit-enhancement-suite
    +  sponsorblock
    +  web-archives
    +  single-file
    +  widegithub
    +  enhanced-github
    +  unpaywall
    +  don-t-fuck-with-paste
    +  plasma-integration
    +];
    +
    +search.engines = {
    +  "Nix Packages" = {
    +    urls = [{
    +      template = "https://search.nixos.org/packages";
    +      params = [
    +        { name = "type"; value = "packages"; }
    +        { name = "query"; value = "{searchTerms}"; }
    +      ];
    +    }];
    +    icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
    +    definedAliases = [ "@np" ];
    +  };
    +
    +  "NixOS Wiki" = {
    +    urls = [{
    +      template = "https://nixos.wiki/index.php?search={searchTerms}";
    +    }];
    +    iconUpdateURL = "https://nixos.wiki/favicon.png";
    +    updateInterval = 24 * 60 * 60 * 1000; # every day
    +    definedAliases = [ "@nw" ];
    +  };
    +
    +  "NixOS Options" = {
    +    urls = [{
    +      template = "https://search.nixos.org/options";
    +      params = [
    +        { name = "query"; value = "{searchTerms}"; }
    +      ];
    +    }];
    +
    +    icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
    +    definedAliases = [ "@no" ];
    +  };
    +
    +  "Home Manager Options" = {
    +    urls = [{
    +      template = "https://home-manager-options.extranix.com/";
    +      params = [
    +        { name = "query"; value = "{searchTerms}"; }
    +      ];
    +    }];
    +
    +    icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
    +    definedAliases = [ "@hm" "@ho" "@hmo" ];
    +  };
    +
    +  "Google".metaData.alias = "@g";
    +};
    +search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
    +
     
    @@ -1036,8 +1118,8 @@ mixedModules = [
    -
    -

    2.3.3. General (outputs)

    +
    +

    2.3.3. General (outputs)

    @@ -2424,7 +2506,7 @@ in
     
  • -
  • Home-manager only
    +
  • Home-manager only
    @@ -2732,14 +2814,22 @@ My work machine.
             workspace = "1:一";
             output = "DP-11";
           };
    -      workdesktop = {
    +      work_back_middle = {
             name = "LG Electronics LG Ultra HD 0x000305A6";
             mode = "2560x1440";
             scale = "1";
    -        position = "0,0";
    +        position = "5120,0";
             workspace = "1:一";
             output = "DP-10";
           };
    +      work_front_left = {
    +        name = "LG Electronics LG Ultra HD 0x0007AB45";
    +        mode = "3840x2160";
    +        scale = "1";
    +        position = "5120,0";
    +        workspace = "1:一";
    +        output = "DP-7";
    +      };
         };
         inputs =  {
           "12972:18:Framework_Laptop_16_Keyboard_Module_-_ANSI_Keyboard" = {
    @@ -2755,6 +2845,7 @@ My work machine.
           };
         };
         keybindings = {
    +      "Mod4+Ctrl+p" = "exec wl-mirror eDP-2";
         };
       };
     }
    @@ -4858,8 +4949,8 @@ in
     
     
    -
    -

    3.2. Overlays, packages, and modules

    +
    +

    3.2. Overlays, packages, and modules

    In this section I define packages that I manually want to nixpkgs. This can be useful for packages that are currently awaiting a PR or public packages that I do not want to maintain. @@ -4878,8 +4969,8 @@ These are for packages that are on nixpkgs, but do not fit my usecase, meaning I This is simply a mirror of the most recent stable branch of nixpkgs. Useful for packages that are broken on nixpkgs, but do not need to be on bleeding edge anyways.

  • -
    -

    3.2.1. Packages

    +
    +

    3.2.1. Packages

    @@ -4905,7 +4996,7 @@ in
     
      -
    1. pass-fuzzel
      +
    2. pass-fuzzel
      # Adapted from https://code.kulupu.party/thesuess/home-manager/src/branch/main/modules/river.nix
      @@ -4967,7 +5058,7 @@ writeShellApplication {
       
    3. -
    4. cura5
      +
    5. cura5
      @@ -5004,7 +5095,7 @@ writeScriptBin "cura" ''
       
    6. -
    7. cdw
      +
    8. cdw
      @@ -5023,7 +5114,7 @@ writeShellApplication {
       
    9. -
    10. cdb
      +
    11. cdb
      @@ -5041,7 +5132,7 @@ writeShellApplication {
       
    12. -
    13. bak
      +
    14. bak
      @@ -5059,7 +5150,7 @@ writeShellApplication {
       
    15. -
    16. timer
      +
    17. timer
      @@ -5077,7 +5168,7 @@ writeShellApplication {
       
    18. -
    19. e
      +
    20. e
      wait=0
      @@ -5118,7 +5209,7 @@ writeShellApplication {
       
    21. -
    22. command-not-found
      +
    23. command-not-found
      # Adapted from https://github.com/bennofs/nix-index/blob/master/command-not-found.sh
      @@ -5157,7 +5248,7 @@ command_not_found_handler () {
       
    24. -
    25. swarselcheck
      +
    26. swarselcheck
      kitty=0
      @@ -5232,7 +5323,7 @@ writeShellApplication {
       
    27. -
    28. waybarupdate
      +
    29. waybarupdate
      CFG=$(git --git-dir="$HOME"/.dotfiles/.git --work-tree="$HOME"/.dotfiles/ status -s | wc -l)
      @@ -5276,7 +5367,7 @@ writeShellApplication {
       
    30. -
    31. opacitytoggle
      +
    32. opacitytoggle
      if swaymsg opacity plus 0.01 -q; then
      @@ -5299,7 +5390,7 @@ writeShellApplication {
       
    33. -
    34. fs-diff
      +
    35. fs-diff
      set -euo pipefail
      @@ -5338,8 +5429,8 @@ writeShellApplication {
       
    -
    -

    3.2.2. Overlays

    +
    +

    3.2.2. Overlays

    @@ -5372,15 +5463,15 @@ writeShellApplication {
     
    -
    -

    3.2.3. Modules

    +
    +

    3.2.3. Modules

    In this section I define custom modules under the swarsel attribute. These are mostly used to define settings specific to a host. I keep these settings confined to either home-manager or nixos to maintain compatibility with non-NixOS machines.

      -
    1. NixOS
      +
    2. NixOS

      Modules that need to be loaded on the NixOS level. Note that these will not be available on systems that are not running NixOS @@ -5398,7 +5489,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a

      -
    1. Wallpaper
      +
    2. Wallpaper
      { lib, ... }:
      @@ -5414,7 +5505,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
       
    3. -
    4. Hardware
      +
    5. Hardware
      { lib, ... }:
      @@ -5432,7 +5523,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
       
    6. -
    7. Setup
      +
    8. Setup
      { lib, ... }:
      @@ -5444,7 +5535,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
       
    9. -
    10. Impermanence
      +
    11. Impermanence
      { lib, ... }:
      @@ -5456,7 +5547,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
       
    12. -
    13. Filesystem
      +
    14. Filesystem
      { lib, ... }:
      @@ -5470,7 +5561,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
       
    -
  • home-manager
    +
  • home-manager
    {
    @@ -5488,7 +5579,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
     
      -
    1. Laptop
      +
    2. Laptop
      { lib, config, ... }:
      @@ -5523,7 +5614,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
       
    3. -
    4. Hardware
      +
    5. Hardware
      { lib, ... }:
      @@ -5547,7 +5638,7 @@ Modules that need to be loaded on the NixOS level. Note that these will not be a
       
    6. -
    7. Waybar
      +
    8. Waybar
        { lib, config, ... }:
      @@ -5587,7 +5678,7 @@ in
       
    9. -
    10. Monitors
      +
    11. Monitors
      { lib, ... }:
      @@ -5604,7 +5695,7 @@ in
       
    12. -
    13. Input
      +
    14. Input
      { lib, config, ... }:
      @@ -5644,7 +5735,7 @@ in
       
    15. -
    16. Nixos
      +
    17. Nixos
      { lib, config, ... }:
      @@ -5680,7 +5771,7 @@ in
       
    18. -
    19. System startup
      +
    20. System startup
      { lib, ... }:
      @@ -5705,7 +5796,7 @@ in
       
    21. -
    22. Wallpaper
      +
    23. Wallpaper
      { lib, ... }:
      @@ -5721,7 +5812,7 @@ in
       
    24. -
    25. Filesystem
      +
    26. Filesystem
      { lib, ... }:
      @@ -5738,8 +5829,8 @@ in
       
  • -
    -

    3.3. NixOS

    +
    +

    3.3. NixOS

    @@ -5750,7 +5841,7 @@ These are system-level settings specific to NixOS machines. All settings that ar

      -
    1. Imports, enable home-manager module, stateVersion
      +
    2. Imports, enable home-manager module, stateVersion

      :CUSTOMID: h:45e4315b-0929-4c47-b65a-c8f0a685f4df @@ -6317,7 +6408,7 @@ in

    -
  • Theme (stylix)
    +
  • Theme (stylix)

    By default, stylix wants to style GRUB as well. However, I think that looks horrible. @@ -6510,7 +6601,7 @@ Some programs profit from being installed through dedicated NixOS settings on sy

    1. -
    2. zsh
      +
    3. zsh

      Do not touch this. @@ -6528,7 +6619,7 @@ Do not touch this.

    -
  • syncthing
    +
  • syncthing
    @@ -6605,7 +6696,7 @@ Enables the blueman service including the nice system tray icon.
     
  • -
  • Network devices
    +
  • Network devices

    In this section we enable compatibility with several network devices I have at home, mainly printers and scanners. @@ -6657,7 +6748,7 @@ services.printing = {

  • -
  • Avahi (device discovery)
    +
  • Avahi (device discovery)

    Avahi is the service used for the network discovery. @@ -6733,7 +6824,7 @@ This is a super-convenient package that lets my remap my CAPS key t

  • -
  • power-profiles-daemon
    +
  • power-profiles-daemon
    _ :
    @@ -6818,7 +6909,7 @@ This section houses the greetd related settings. I do not really want to use a d
     
  • -
  • nix-ld
    +
  • nix-ld
    { pkgs, ... }:
    @@ -6934,7 +7025,7 @@ This section houses the greetd related settings. I do not really want to use a d
     
  • -
  • Impermanence
    +
  • Impermanence
    { config, lib, ... }:
    @@ -7030,12 +7121,12 @@ This section houses the greetd related settings. I do not really want to use a d
     
  • -
    -

    3.3.2. Optional

    +
    +

    3.3.2. Optional

      -
    1. gaming
      +
    2. gaming
      { pkgs, ... }:
      @@ -7068,7 +7159,7 @@ This section houses the greetd related settings. I do not really want to use a d
       
    3. -
    4. VirtualBox
      +
    5. VirtualBox
        _ :
      @@ -7088,7 +7179,7 @@ This section houses the greetd related settings. I do not really want to use a d
       
    6. -
    7. Auto-login
      +
    8. Auto-login
      _ :
      @@ -7102,7 +7193,7 @@ This section houses the greetd related settings. I do not really want to use a d
       
    9. -
    10. nswitch-rcm
      +
    11. nswitch-rcm
      { pkgs, ... }:
      @@ -7119,7 +7210,7 @@ This section houses the greetd related settings. I do not really want to use a d
       
    12. -
    13. work
      +
    14. work
      { pkgs, ... }:
      @@ -7137,8 +7228,8 @@ This section houses the greetd related settings. I do not really want to use a d
       
    -
    -

    3.4. Home-manager

    +
    +

    3.4. Home-manager

    @@ -7146,7 +7237,7 @@ This section houses the greetd related settings. I do not really want to use a d
      -
    1. Imports
      +
    2. Imports

      This section sets up all the imports that are used in the home-manager section. @@ -7837,7 +7928,7 @@ This section is for programs that require no further configuration. zsh Integrat

    -
  • nix-index
    +
  • nix-index

    nix-index provides a way to find out which packages are provided by which derivations. By default it also comes with a replacement for command-not-found.sh, however, the implementation is based on a channel based setup. I like consistency, so I replace the command with one that provides a flakes-based output. @@ -8699,6 +8790,7 @@ I used to build the firefox addon bypass-paywalls-clean myself here EnableTrackingProtection = true; }; profiles.default = { + id = 0; isDefault = true; userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css; extensions = with pkgs.nur.repos.rycee.firefox-addons; [ @@ -8711,7 +8803,6 @@ I used to build the firefox addon bypass-paywalls-clean myself here translate-web-pages ublock-origin reddit-enhancement-suite - pushbullet sponsorblock web-archives single-file @@ -8916,6 +9007,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se lib.recursiveUpdate { "${modifier}+q" = "kill"; "${modifier}+f" = "exec firefox"; + "${modifier}+Shift+f" = "exec swaymsg fullscreen"; "${modifier}+Space" = "exec fuzzel"; "${modifier}+Shift+Space" = "floating toggle"; "${modifier}+e" = "exec emacsclient -nquc -a emacs -e \"(dashboard-open)\""; @@ -9160,7 +9252,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se

  • -
  • gpg-agent
    +
  • gpg-agent
    { pkgs, ... }:
    @@ -9182,7 +9274,7 @@ services.gpg-agent = {
     
  • -
  • gammastep
    +
  • gammastep
    _:
    @@ -9200,12 +9292,12 @@ services.gpg-agent = {
     
  • -
    -

    3.4.2. Optional

    +
    +

    3.4.2. Optional

      -
    1. Gaming
      +
    2. Gaming
      @@ -9241,27 +9333,263 @@ services.gpg-agent = {
       
    3. -
    4. Work
      +
    5. Work
       { pkgs, ... }:
       
      - {
      -   home.packages = with pkgs; [
      -     teams-for-linux
      -     google-chrome
      -   ];
      +{
      +  home.packages = with pkgs; [
      +    teams-for-linux
      +    google-chrome
      +    thunderbird
      +    ansible
      +    dig
      +  ];
       
      -   programs.ssh = {
      -     matchBlocks = {
      -       "*.vbc.ac.at" = {
      -         user = "dc_adm_schwarzaeugl";
      -       };
      -     };
      -   };
      +  programs.ssh = {
      +    matchBlocks = {
      +      "*.vbc.ac.at" = {
      +        user = "dc_adm_schwarzaeugl";
      +      };
      +    };
      +  };
       
      - }
      +  programs.firefox = {
      +    profiles = {
      +      dc_adm = {
      +        id = 1;
      +
      +        isDefault = false;
      +        userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
      +        extensions = with pkgs.nur.repos.rycee.firefox-addons; [
      +          tridactyl
      +          browserpass
      +          clearurls
      +          darkreader
      +          enhancer-for-youtube
      +          istilldontcareaboutcookies
      +          translate-web-pages
      +          ublock-origin
      +          reddit-enhancement-suite
      +          sponsorblock
      +          web-archives
      +          single-file
      +          widegithub
      +          enhanced-github
      +          unpaywall
      +          don-t-fuck-with-paste
      +          plasma-integration
      +        ];
      +
      +        search.engines = {
      +          "Nix Packages" = {
      +            urls = [{
      +              template = "https://search.nixos.org/packages";
      +              params = [
      +                { name = "type"; value = "packages"; }
      +                { name = "query"; value = "{searchTerms}"; }
      +              ];
      +            }];
      +            icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
      +            definedAliases = [ "@np" ];
      +          };
      +
      +          "NixOS Wiki" = {
      +            urls = [{
      +              template = "https://nixos.wiki/index.php?search={searchTerms}";
      +            }];
      +            iconUpdateURL = "https://nixos.wiki/favicon.png";
      +            updateInterval = 24 * 60 * 60 * 1000; # every day
      +            definedAliases = [ "@nw" ];
      +          };
      +
      +          "NixOS Options" = {
      +            urls = [{
      +              template = "https://search.nixos.org/options";
      +              params = [
      +                { name = "query"; value = "{searchTerms}"; }
      +              ];
      +            }];
      +
      +            icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
      +            definedAliases = [ "@no" ];
      +          };
      +
      +          "Home Manager Options" = {
      +            urls = [{
      +              template = "https://home-manager-options.extranix.com/";
      +              params = [
      +                { name = "query"; value = "{searchTerms}"; }
      +              ];
      +            }];
      +
      +            icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
      +            definedAliases = [ "@hm" "@ho" "@hmo" ];
      +          };
      +
      +          "Google".metaData.alias = "@g";
      +        };
      +        search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
      +
      +      };
      +      cl_adm = {
      +        id = 2;
      +
      +        isDefault = false;
      +        userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
      +        extensions = with pkgs.nur.repos.rycee.firefox-addons; [
      +          tridactyl
      +          browserpass
      +          clearurls
      +          darkreader
      +          enhancer-for-youtube
      +          istilldontcareaboutcookies
      +          translate-web-pages
      +          ublock-origin
      +          reddit-enhancement-suite
      +          sponsorblock
      +          web-archives
      +          single-file
      +          widegithub
      +          enhanced-github
      +          unpaywall
      +          don-t-fuck-with-paste
      +          plasma-integration
      +        ];
      +
      +        search.engines = {
      +          "Nix Packages" = {
      +            urls = [{
      +              template = "https://search.nixos.org/packages";
      +              params = [
      +                { name = "type"; value = "packages"; }
      +                { name = "query"; value = "{searchTerms}"; }
      +              ];
      +            }];
      +            icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
      +            definedAliases = [ "@np" ];
      +          };
      +
      +          "NixOS Wiki" = {
      +            urls = [{
      +              template = "https://nixos.wiki/index.php?search={searchTerms}";
      +            }];
      +            iconUpdateURL = "https://nixos.wiki/favicon.png";
      +            updateInterval = 24 * 60 * 60 * 1000; # every day
      +            definedAliases = [ "@nw" ];
      +          };
      +
      +          "NixOS Options" = {
      +            urls = [{
      +              template = "https://search.nixos.org/options";
      +              params = [
      +                { name = "query"; value = "{searchTerms}"; }
      +              ];
      +            }];
      +
      +            icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
      +            definedAliases = [ "@no" ];
      +          };
      +
      +          "Home Manager Options" = {
      +            urls = [{
      +              template = "https://home-manager-options.extranix.com/";
      +              params = [
      +                { name = "query"; value = "{searchTerms}"; }
      +              ];
      +            }];
      +
      +            icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
      +            definedAliases = [ "@hm" "@ho" "@hmo" ];
      +          };
      +
      +          "Google".metaData.alias = "@g";
      +        };
      +        search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
      +
      +      };
      +      ws_adm = {
      +        id = 3;
      +
      +        isDefault = false;
      +        userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
      +        extensions = with pkgs.nur.repos.rycee.firefox-addons; [
      +          tridactyl
      +          browserpass
      +          clearurls
      +          darkreader
      +          enhancer-for-youtube
      +          istilldontcareaboutcookies
      +          translate-web-pages
      +          ublock-origin
      +          reddit-enhancement-suite
      +          sponsorblock
      +          web-archives
      +          single-file
      +          widegithub
      +          enhanced-github
      +          unpaywall
      +          don-t-fuck-with-paste
      +          plasma-integration
      +        ];
      +
      +        search.engines = {
      +          "Nix Packages" = {
      +            urls = [{
      +              template = "https://search.nixos.org/packages";
      +              params = [
      +                { name = "type"; value = "packages"; }
      +                { name = "query"; value = "{searchTerms}"; }
      +              ];
      +            }];
      +            icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
      +            definedAliases = [ "@np" ];
      +          };
      +
      +          "NixOS Wiki" = {
      +            urls = [{
      +              template = "https://nixos.wiki/index.php?search={searchTerms}";
      +            }];
      +            iconUpdateURL = "https://nixos.wiki/favicon.png";
      +            updateInterval = 24 * 60 * 60 * 1000; # every day
      +            definedAliases = [ "@nw" ];
      +          };
      +
      +          "NixOS Options" = {
      +            urls = [{
      +              template = "https://search.nixos.org/options";
      +              params = [
      +                { name = "query"; value = "{searchTerms}"; }
      +              ];
      +            }];
      +
      +            icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
      +            definedAliases = [ "@no" ];
      +          };
      +
      +          "Home Manager Options" = {
      +            urls = [{
      +              template = "https://home-manager-options.extranix.com/";
      +              params = [
      +                { name = "query"; value = "{searchTerms}"; }
      +              ];
      +            }];
      +
      +            icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
      +            definedAliases = [ "@hm" "@ho" "@hmo" ];
      +          };
      +
      +          "Google".metaData.alias = "@g";
      +        };
      +        search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
      +
      +      };
      +    };
      +  };
      +
      +}
       
       
      @@ -10305,7 +10633,7 @@ The standard Emacs behaviour for the Python process shell is a bit annoying. Thi
    -
  • Nix common prefix bracketer
    +
  • Nix common prefix bracketer

    This function searches for common delimiters in region and removes them, summarizing all captured lines by it. @@ -10338,7 +10666,7 @@ This function searches for common delimiters in region and removes them, summari

  • -
  • Nix formatters
    +
  • Nix formatters

    This formats the org code block at point in accordance to the nixpkgs-fmt formatter @@ -11911,8 +12239,8 @@ This adds a rudimentary nix-mode to Emacs. I have not really tried this out, as

  • -
    -

    4.4.3. nixpkgs-fmt

    +
    +

    4.4.3. nixpkgs-fmt

    Adds functions for formatting nix code. @@ -13927,7 +14255,7 @@ My laptop, sadly soon to be replaced by a new one, since most basic functions ar

    Author: Leon Schwarzäugl

    -

    Created: 2024-08-05 Mo 01:47

    +

    Created: 2024-08-06 Di 14:08

    Validate

    diff --git a/profiles/common/home/sway.nix b/profiles/common/home/sway.nix index 132beae..b278d39 100644 --- a/profiles/common/home/sway.nix +++ b/profiles/common/home/sway.nix @@ -35,6 +35,7 @@ in { "${modifier}+q" = "kill"; "${modifier}+f" = "exec firefox"; + "${modifier}+Shift+f" = "exec swaymsg fullscreen"; "${modifier}+Space" = "exec fuzzel"; "${modifier}+Shift+Space" = "floating toggle"; "${modifier}+e" = "exec emacsclient -nquc -a emacs -e \"(dashboard-open)\""; diff --git a/profiles/nbl-imba-2/default.nix b/profiles/nbl-imba-2/default.nix index 70d6400..51c71ec 100644 --- a/profiles/nbl-imba-2/default.nix +++ b/profiles/nbl-imba-2/default.nix @@ -105,14 +105,22 @@ workspace = "1:一"; output = "DP-11"; }; - workdesktop = { + work_back_middle = { name = "LG Electronics LG Ultra HD 0x000305A6"; mode = "2560x1440"; scale = "1"; - position = "0,0"; + position = "5120,0"; workspace = "1:一"; output = "DP-10"; }; + work_front_left = { + name = "LG Electronics LG Ultra HD 0x0007AB45"; + mode = "3840x2160"; + scale = "1"; + position = "5120,0"; + workspace = "1:一"; + output = "DP-7"; + }; }; inputs = { "12972:18:Framework_Laptop_16_Keyboard_Module_-_ANSI_Keyboard" = { @@ -127,6 +135,8 @@ middle_emulation = "enabled"; }; }; - keybindings = { }; + keybindings = { + "Mod4+Ctrl+p" = "exec wl-mirror eDP-2"; + }; }; }