this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

:art: using alejandra formatter for nix

+252 -234
+5
README.org
··· 59 59 :header-args: :noweb-ref outputs 60 60 :END: 61 61 62 + *** Formatter 63 + #+begin_src nix 64 + formatter.x86_64-linux = pkgs.alejandra; 65 + #+end_src 66 + 62 67 *** NixOS System 63 68 #+begin_src nix 64 69 nixosConfigurations = {
+8 -2
flake.nix
··· 9 9 }; 10 10 }; 11 11 12 - outputs = { self, nixpkgs, home-manager, ... }@inputs: let 12 + outputs = { 13 + self, 14 + nixpkgs, 15 + home-manager, 16 + ... 17 + } @ inputs: let 13 18 system = "x86_64-linux"; 14 19 hostname = "nixos"; 15 20 stateVersion = "22.11"; ··· 23 28 }; 24 29 }; 25 30 in { 31 + formatter.x86_64-linux = pkgs.alejandra; 26 32 nixosConfigurations = { 27 33 ${hostname} = nixpkgs.lib.nixosSystem { 28 34 inherit system; 29 - 35 + 30 36 modules = [ 31 37 ./hosts/desktop 32 38 ];
+25 -17
home/alacritty/default.nix
··· 30 30 cursor.style = "Underline"; 31 31 32 32 key_bindings = [ 33 - { key = "V"; mods = "Alt"; action = "Paste"; } 34 - { key = "C"; mods = "Alt"; action = "Copy"; } 33 + { 34 + key = "V"; 35 + mods = "Alt"; 36 + action = "Paste"; 37 + } 38 + { 39 + key = "C"; 40 + mods = "Alt"; 41 + action = "Copy"; 42 + } 35 43 ]; 36 44 37 45 colors = { ··· 39 47 background = "0x1D1F28"; 40 48 foreground = "0xFDFDFD"; 41 49 }; 42 - normal= { 43 - black = "0x282A36"; 44 - red = "0xF37F97"; 45 - green = "0x5ADECD"; 46 - yellow = "0xF2A272"; 47 - blue = "0x8897F4"; 50 + normal = { 51 + black = "0x282A36"; 52 + red = "0xF37F97"; 53 + green = "0x5ADECD"; 54 + yellow = "0xF2A272"; 55 + blue = "0x8897F4"; 48 56 magenta = "0xC574DD"; 49 - cyan = "0x79E6F3"; 50 - white = "0xFDFDFD"; 57 + cyan = "0x79E6F3"; 58 + white = "0xFDFDFD"; 51 59 }; 52 60 bright = { 53 - black = "0x414458"; 54 - red = "0xFF4971"; 55 - green = "0x18E3C8"; 56 - yellow = "0xEBCB8B"; 57 - blue = "0xFF8037"; 61 + black = "0x414458"; 62 + red = "0xFF4971"; 63 + green = "0x18E3C8"; 64 + yellow = "0xEBCB8B"; 65 + blue = "0xFF8037"; 58 66 magenta = "0x556FFF"; 59 - cyan = "0x3FDCEE"; 60 - white = "0xBEBEC1"; 67 + cyan = "0x3FDCEE"; 68 + white = "0xBEBEC1"; 61 69 }; 62 70 indexed_colors = []; 63 71 };
+15 -11
home/default.nix
··· 1 - { config, pkgs, username, stateVersion, ... }: 2 - 3 1 { 2 + config, 3 + pkgs, 4 + username, 5 + stateVersion, 6 + ... 7 + }: { 4 8 # Home Manager needs a bit of information about you and the paths it should 5 9 # manage. 6 10 home.username = username; ··· 29 33 # The home.packages option allows you to install Nix packages into your 30 34 # environment. 31 35 home.packages = with pkgs; [ 32 - nodejs 33 - ghc 36 + nodejs 37 + ghc 34 38 35 - just 39 + just 36 40 37 - eww-wayland 38 - ripgrep 39 - jq 41 + eww-wayland 42 + ripgrep 43 + jq 40 44 41 - sioyek 42 - nushell 45 + sioyek 46 + nushell 43 47 # # Adds the 'hello' command to your environment. It prints a friendly 44 48 # # "Hello, world!" when run. 45 49 # pkgs.hello ··· 103 107 dotDir = ".config/zsh"; 104 108 oh-my-zsh = { 105 109 enable = true; 106 - plugins = [ "git" ]; 110 + plugins = ["git"]; 107 111 }; 108 112 }; 109 113
+150 -150
home/firefox/default.nix
··· 1 - { config, pkgs, ... }: 2 - 3 1 { 2 + config, 3 + pkgs, 4 + ... 5 + }: { 4 6 programs.firefox = { 5 7 enable = true; 6 8 7 9 profiles.${config.home.username} = { 8 - 9 10 settings = { 10 11 "toolkit.legacyUserProfileCustomizations.stylesheets" = true; 11 12 "findbar.highlightAll" = true; ··· 21 22 } 22 23 { 23 24 name = "wiki"; 24 - tags = [ "wiki" "nix" ]; 25 + tags = ["wiki" "nix"]; 25 26 url = "https://nixos.wiki/"; 26 27 } 27 28 { 28 29 name = "Home Manager"; 29 - tags = [ "nix" ]; 30 + tags = ["nix"]; 30 31 url = "https://nix-community.github.io/home-manager/options.html"; 31 32 } 32 33 ]; ··· 34 35 ]; 35 36 36 37 userChrome = '' 37 - /*===KeyFox by AlfarexGuy2019===*/ 38 + /*===KeyFox by AlfarexGuy2019===*/ 38 39 39 - /*===COLORS===*/ 40 + /*===COLORS===*/ 40 41 41 - :root { 42 - --accent-color: 45, 45, 45; 43 - --tab-color: 240, 240, 244; 44 - --tab-text-color: 255, 255, 255; 45 - --secondary-accent-color: 127,127,127; 46 - --second-tab-text-color: 127,127,127; 47 - --third-accent-color: 235, 219, 178; 48 - --light-color: 255, 255, 255; 49 - --dark-color: 0, 0, 0; 50 - --url-back: 249, 249, 251; 51 - --caption-min-color: 215, 153, 33; 52 - --caption-max-color: 69, 133, 136; 53 - --caption-close-color: 177, 98, 134; 54 - } 42 + :root { 43 + --accent-color: 45, 45, 45; 44 + --tab-color: 240, 240, 244; 45 + --tab-text-color: 255, 255, 255; 46 + --secondary-accent-color: 127,127,127; 47 + --second-tab-text-color: 127,127,127; 48 + --third-accent-color: 235, 219, 178; 49 + --light-color: 255, 255, 255; 50 + --dark-color: 0, 0, 0; 51 + --url-back: 249, 249, 251; 52 + --caption-min-color: 215, 153, 33; 53 + --caption-max-color: 69, 133, 136; 54 + --caption-close-color: 177, 98, 134; 55 + } 55 56 56 57 57 - /* MIN MAX CLOSE Remove */ 58 - #TabsToolbar > .titlebar-buttonbox-container { 59 - visibility: collapse !important;} 58 + /* MIN MAX CLOSE Remove */ 59 + #TabsToolbar > .titlebar-buttonbox-container { 60 + visibility: collapse !important;} 60 61 61 - /*Basic Settings*/ 62 + /*Basic Settings*/ 62 63 63 64 64 - :root { 65 - --navbarWidth : 40vw; /* Set width of navbar. Use px for a fixed width 66 - or vw for a percentage of your window. */ 67 - --animationSpeed : 0.5s; 68 - } 65 + :root { 66 + --navbarWidth : 40vw; /* Set width of navbar. Use px for a fixed width 67 + or vw for a percentage of your window. */ 68 + --animationSpeed : 0.5s; 69 + } 69 70 70 71 71 - #TabsToolbar { 72 - margin-left : var(--navbarWidth) !important; 73 - } 74 - 75 - #nav-bar { 76 - margin-right: calc(100vw - var(--navbarWidth)) !important; 77 - } 72 + #TabsToolbar { 73 + margin-left : var(--navbarWidth) !important; 74 + } 78 75 79 - #urlbar-container { 80 - min-width : 0px !important; 81 - } 76 + #nav-bar { 77 + margin-right: calc(100vw - var(--navbarWidth)) !important; 78 + } 82 79 83 - :root[uidensity="compact"] #nav-bar { 84 - margin-top : -37px !important; 85 - height : 37px !important; 86 - } 80 + #urlbar-container { 81 + min-width : 0px !important; 82 + } 87 83 88 - :root:not([uidensity="compact"]):not([uidensity="touch"]) #nav-bar { 89 - margin-top : -44px !important; 90 - height : 44px !important; 91 - } 84 + :root[uidensity="compact"] #nav-bar { 85 + margin-top : -37px !important; 86 + height : 37px !important; 87 + } 92 88 93 - :root[uidensity="touch"] #nav-bar { 94 - margin-top : -49px !important; 95 - height : 49px !important; 96 - } 89 + :root:not([uidensity="compact"]):not([uidensity="touch"]) #nav-bar { 90 + margin-top : -44px !important; 91 + height : 44px !important; 92 + } 97 93 94 + :root[uidensity="touch"] #nav-bar { 95 + margin-top : -49px !important; 96 + height : 49px !important; 97 + } 98 98 99 - /* Back Hide */ 100 - #back-button[disabled="true"] { display: none !important } 101 99 102 - /* Forward Hide */ 103 - #forward-button[disabled="true"] { display: none !important } 100 + /* Back Hide */ 101 + #back-button[disabled="true"] { display: none !important } 104 102 105 - /* Site information button */ 106 - #identity-box { display: none !important } 103 + /* Forward Hide */ 104 + #forward-button[disabled="true"] { display: none !important } 107 105 108 - /* "Shield" icon */ 109 - #tracking-protection-icon-container { display: none !important } 106 + /* Site information button */ 107 + #identity-box { display: none !important } 110 108 109 + /* "Shield" icon */ 110 + #tracking-protection-icon-container { display: none !important } 111 111 112 - /* Simplifying interface */ 113 112 114 - #nav-bar { 115 - background : none !important; 116 - box-shadow : none !important; 117 - } 113 + /* Simplifying interface */ 118 114 119 - #navigator-toolbox { 120 - border : none !important; 121 - } 115 + #nav-bar { 116 + background : none !important; 117 + box-shadow : none !important; 118 + } 122 119 123 - .titlebar-spacer { 124 - display : none !important; 125 - } 120 + #navigator-toolbox { 121 + border : none !important; 122 + } 126 123 127 - #urlbar-background { 128 - border : none !important; 129 - } 124 + .titlebar-spacer { 125 + display : none !important; 126 + } 130 127 131 - #urlbar:not(:hover):not([breakout][breakout-extend]) > #urlbar-background { 132 - box-shadow : none !important; 133 - background : none !important; 134 - } 128 + #urlbar-background { 129 + border : none !important; 130 + } 135 131 132 + #urlbar:not(:hover):not([breakout][breakout-extend]) > #urlbar-background { 133 + box-shadow : none !important; 134 + background : none !important; 135 + } 136 136 137 - /* Element Hiding stuff */ 138 137 139 - .urlbar-icon, #userContext-indicator, #userContext-label { 140 - fill : transparent !important; 141 - background : transparent !important; 142 - color : transparent !important; 143 - } 138 + /* Element Hiding stuff */ 144 139 145 - #urlbar:hover .urlbar-icon, 146 - #urlbar:active .urlbar-icon, 147 - #urlbar[focused] .urlbar-icon { 148 - fill : var(--toolbar-color) !important; 149 - } 140 + .urlbar-icon, #userContext-indicator, #userContext-label { 141 + fill : transparent !important; 142 + background : transparent !important; 143 + color : transparent !important; 144 + } 150 145 151 - /*================== TABS BAR ==================*/ 146 + #urlbar:hover .urlbar-icon, 147 + #urlbar:active .urlbar-icon, 148 + #urlbar[focused] .urlbar-icon { 149 + fill : var(--toolbar-color) !important; 150 + } 152 151 153 - #titlebar #TabsToolbar { 154 - background: rgba(var(--dark-color), 1) !important; 155 - } 152 + /*================== TABS BAR ==================*/ 156 153 154 + #titlebar #TabsToolbar { 155 + background: rgba(var(--dark-color), 1) !important; 156 + } 157 157 158 - #PersonalToolbar { 159 - background: rgba(var(--dark-color), 1) !important; 160 - color: rgba(var(--light-color), 1) !important; 161 - padding-bottom: 6px !important; 162 - padding-top: 1px !important; 163 - } 164 158 165 - toolbar#nav-bar { 166 - background: rgba(var(--dark-color), 1) !important; 167 - box-shadow: none !important; 168 - padding-bottom: 4px !important; 169 - } 159 + #PersonalToolbar { 160 + background: rgba(var(--dark-color), 1) !important; 161 + color: rgba(var(--light-color), 1) !important; 162 + padding-bottom: 6px !important; 163 + padding-top: 1px !important; 164 + } 170 165 171 - /*================ DARK THEME ================*/ 172 - :root:-moz-lwtheme-brighttext, 173 - .sidebar-panel[lwt-sidebar-brighttext], 174 - body[lwt-sidebar-brighttext] { 175 - --main-bgcolor: var(--dark-color); 176 - --transparent-bgcolor: var(--dark-color); 177 - } 166 + toolbar#nav-bar { 167 + background: rgba(var(--dark-color), 1) !important; 168 + box-shadow: none !important; 169 + padding-bottom: 4px !important; 170 + } 178 171 179 - tab[selected="true"] .tab-content { 180 - color: rgba(var(--secondary-accent-color), 1) !important; 181 - } 172 + /*================ DARK THEME ================*/ 173 + :root:-moz-lwtheme-brighttext, 174 + .sidebar-panel[lwt-sidebar-brighttext], 175 + body[lwt-sidebar-brighttext] { 176 + --main-bgcolor: var(--dark-color); 177 + --transparent-bgcolor: var(--dark-color); 178 + } 182 179 183 - tab[selected="true"] .tab-background { 184 - background: rgba(var(--accent-color), 1) !important; 185 - } 186 - .tabbrowser-tab>.tab-stack>.tab-background:not([selected="true"]) { 187 - transition: all 0.3s ease !important; 188 - } 180 + tab[selected="true"] .tab-content { 181 + color: rgba(var(--secondary-accent-color), 1) !important; 182 + } 189 183 190 - .tabbrowser-tab:hover>.tab-stack>.tab-background:not([selected="true"]) { 191 - background-color: rgba(var(--transparent-bgcolor), 0.7) !important; 184 + tab[selected="true"] .tab-background { 185 + background: rgba(var(--accent-color), 1) !important; 186 + } 187 + .tabbrowser-tab>.tab-stack>.tab-background:not([selected="true"]) { 188 + transition: all 0.3s ease !important; 192 189 } 193 190 194 - .tab-line { 195 - height: 0px !important; 196 - } 191 + .tabbrowser-tab:hover>.tab-stack>.tab-background:not([selected="true"]) { 192 + background-color: rgba(var(--transparent-bgcolor), 0.7) !important; 193 + } 197 194 198 - .tabbrowser-tab { 199 - margin-right: 5px !important; 200 - } 195 + .tab-line { 196 + height: 0px !important; 197 + } 201 198 202 - .tabbrowser-tab:not([visuallyselected="true"]), 203 - .tabbrowser-tab:-moz-lwtheme { 204 - color: rgba(var(--second-tab-text-color), 1) !important; 205 - } 199 + .tabbrowser-tab { 200 + margin-right: 5px !important; 201 + } 206 202 207 - tab[selected="true"] .tab-content { 208 - color: rgba(var(--tab-text-color), 1) !important; 209 - } 203 + .tabbrowser-tab:not([visuallyselected="true"]), 204 + .tabbrowser-tab:-moz-lwtheme { 205 + color: rgba(var(--second-tab-text-color), 1) !important; 206 + } 210 207 211 - tab[selected="true"] .tab-background { 212 - background: rgba(var(--accent-color), 1) !important; 213 - } 208 + tab[selected="true"] .tab-content { 209 + color: rgba(var(--tab-text-color), 1) !important; 210 + } 214 211 215 - .tabbrowser-tab::after, 216 - .tabbrowser-tab::before { 217 - border-left: 0 !important; 218 - opacity: 0 !important; 219 - } 212 + tab[selected="true"] .tab-background { 213 + background: rgba(var(--accent-color), 1) !important; 214 + } 220 215 221 - .tab-close-button { 222 - transition: all 0.3s ease !important; 223 - border-radius: 4px !important; 224 - } 216 + .tabbrowser-tab::after, 217 + .tabbrowser-tab::before { 218 + border-left: 0 !important; 219 + opacity: 0 !important; 220 + } 225 221 226 - .tabbrowser-tab .tab-label { color: var(--uc-inverted-colour) !important; } 227 - .tab-close-button { fill: var(--uc-inverted-colour) !important } 228 - ''; 222 + .tab-close-button { 223 + transition: all 0.3s ease !important; 224 + border-radius: 4px !important; 225 + } 229 226 227 + .tabbrowser-tab .tab-label { color: var(--uc-inverted-colour) !important; } 228 + .tab-close-button { fill: var(--uc-inverted-colour) !important } 229 + ''; 230 230 }; 231 231 }; 232 232 }
+1 -1
home/git/default.nix
··· 7 7 key = "2748A6200C9EE0B4"; 8 8 signByDefault = true; 9 9 }; 10 - ignores = [ "*~" "*.swp" ]; 10 + ignores = ["*~" "*.swp"]; 11 11 extraConfig = { 12 12 commit.template = "~/.config/git/message"; 13 13 };
+1 -7
home/gtk/default.nix
··· 1 - { pkgs, ... }: 2 - 3 - { 1 + {pkgs, ...}: { 4 2 home.packages = with pkgs; [ 5 - 6 3 bibata-cursors 7 4 8 5 gnomeExtensions.appindicator ··· 10 7 gnomeExtensions.dash-to-dock 11 8 12 9 adw-gtk3 13 - 14 10 ]; 15 11 16 12 dconf = { 17 13 enable = true; 18 14 19 15 settings = { 20 - 21 16 "org/gnome/shell" = { 22 17 enable-extensions = [ 23 18 "paperwm@hedning:matrix.org" ··· 31 26 font-name = "Fira Code 11"; 32 27 cursor-theme = "Bibata-Modern-Classic"; 33 28 }; 34 - 35 29 }; 36 30 }; 37 31 }
+1 -2
home/keyboard/default.nix
··· 1 - { pkgs, ... }: 2 - { 1 + {pkgs, ...}: { 3 2 home.packages = with pkgs; [ 4 3 qmk 5 4 qmk-udev-rules
+3 -4
home/neovim/default.nix
··· 5 5 ".vimrc".source = ./vimrc; 6 6 7 7 ".config/nvim/init.vim".text = '' 8 - set runtimepath^=~/.vim runtimepath+=~/.vim/after 9 - let &packpath = &runtimepath 10 - source ~/.vimrc 8 + set runtimepath^=~/.vim runtimepath+=~/.vim/after 9 + let &packpath = &runtimepath 10 + source ~/.vimrc 11 11 ''; 12 12 13 13 ".config/vim/ale.vim".source = ./config/ale.vim; ··· 31 31 ".vim/.skeleton.tex".source = ./skeletons/.skeleton.tex; 32 32 ".vim/.skeleton.vue.test".source = ./skeletons/.skeleton.vue.test; 33 33 }; 34 - 35 34 }
+1 -3
home/vscode/default.nix
··· 1 - { pkgs, ... }: 2 - 3 - { 1 + {pkgs, ...}: { 4 2 programs.vscode = { 5 3 enable = true; 6 4
+22 -21
hosts/desktop/default.nix
··· 1 1 # Edit this configuration file to define what should be installed on 2 2 # your system. Help is available in the configuration.nix(5) man page 3 3 # and in the NixOS manual (accessible by running ‘nixos-help’). 4 - 5 - { config, pkgs, fetchFromGithub, ... }: 6 - 7 4 { 8 - imports = 9 - [ # Include the results of the hardware scan. 10 - ./hardware-configuration.nix 11 - ]; 5 + config, 6 + pkgs, 7 + fetchFromGithub, 8 + ... 9 + }: { 10 + imports = [ 11 + # Include the results of the hardware scan. 12 + ./hardware-configuration.nix 13 + ]; 12 14 13 15 # Bootloader. 14 16 boot.loader.grub = { ··· 48 50 }; 49 51 50 52 services = { 51 - 52 53 xserver = { 53 54 # Enable the X11 windowing system. 54 55 enable = true; ··· 113 114 users.users.pedro = { 114 115 isNormalUser = true; 115 116 description = "Pedro"; 116 - extraGroups = [ "networkmanager" "wheel" "tty" "docker" ]; 117 + extraGroups = ["networkmanager" "wheel" "tty" "docker"]; 117 118 shell = pkgs.zsh; 118 119 }; 119 120 ··· 123 124 # List packages installed in system profile. To search, run: 124 125 # $ nix search wget 125 126 environment = { 126 - gnome.excludePackages = (with pkgs; [ 127 - gnome-tour 128 - gnome-text-editor 129 - ]) ++ (with pkgs.gnome; [ 130 - gnome-music 131 - gnome-shell 132 - geary 133 - epiphany 134 - totem 135 - ]); 127 + gnome.excludePackages = 128 + (with pkgs; [ 129 + gnome-tour 130 + gnome-text-editor 131 + ]) 132 + ++ (with pkgs.gnome; [ 133 + gnome-music 134 + gnome-shell 135 + geary 136 + epiphany 137 + totem 138 + ]); 136 139 137 140 systemPackages = with pkgs; [ 138 141 git ··· 141 144 home-manager 142 145 ]; 143 146 }; 144 - 145 147 146 148 # Some programs need SUID wrappers, can be configured further or are 147 149 # started in user sessions. ··· 162 164 # Before changing this value read the documentation for this option 163 165 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). 164 166 system.stateVersion = "22.11"; # Did you read the comment? 165 - 166 167 167 168 # Automatic GB 168 169 nix = {
+20 -16
hosts/desktop/hardware-configuration.nix
··· 1 1 # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 2 # and may be overwritten by future invocations. Please make changes 3 3 # to /etc/nixos/configuration.nix instead. 4 - { config, lib, pkgs, modulesPath, ... }: 5 - 6 4 { 7 - imports = 8 - [ (modulesPath + "/installer/scan/not-detected.nix") 9 - ]; 5 + config, 6 + lib, 7 + pkgs, 8 + modulesPath, 9 + ... 10 + }: { 11 + imports = [ 12 + (modulesPath + "/installer/scan/not-detected.nix") 13 + ]; 10 14 11 - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; 12 - boot.initrd.kernelModules = [ ]; 13 - boot.kernelModules = [ "kvm-intel" ]; 14 - boot.extraModulePackages = [ ]; 15 + boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"]; 16 + boot.initrd.kernelModules = []; 17 + boot.kernelModules = ["kvm-intel"]; 18 + boot.extraModulePackages = []; 15 19 16 - fileSystems."/" = 17 - { device = "/dev/disk/by-uuid/5ce7128f-3031-48fb-819b-f9c6942a142e"; 18 - fsType = "ext4"; 19 - }; 20 + fileSystems."/" = { 21 + device = "/dev/disk/by-uuid/5ce7128f-3031-48fb-819b-f9c6942a142e"; 22 + fsType = "ext4"; 23 + }; 20 24 21 - swapDevices = 22 - [ { device = "/dev/disk/by-uuid/80b01507-ea31-4d84-a7ea-dbcd5f4b2546"; } 23 - ]; 25 + swapDevices = [ 26 + {device = "/dev/disk/by-uuid/80b01507-ea31-4d84-a7ea-dbcd5f4b2546";} 27 + ]; 24 28 25 29 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 26 30 # (the default) this is the recommended approach. When using systemd-networkd it's