Personal Nix flake
nixos home-manager nix
1
fork

Configure Feed

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

refactor: Expose lib.config under my.config namespace

+44 -35
+2 -2
nix/home/configs/lpchaim.nix
··· 1 1 { 2 - inputs, 2 + config, 3 3 lib, 4 4 osConfig ? {}, 5 5 ... 6 6 }: let 7 - inherit (inputs.self.lib.config) name; 7 + inherit (config.my.config) name; 8 8 in { 9 9 home = rec { 10 10 username = "${name.user}";
+1 -1
nix/home/modules/bars/dank-material-shell/default.nix
··· 5 5 osConfig ? {}, 6 6 ... 7 7 }: let 8 + inherit (config.my.config) wallpaper; 8 9 inherit (inputs.self.lib) isNvidia; 9 - inherit (inputs.self.lib.config) wallpaper; 10 10 cfg = config.my.bars.dank-material-shell; 11 11 isNvidia' = isNvidia osConfig; 12 12 in {
+1 -1
nix/home/modules/cli/essentials/default.nix
··· 5 5 pkgs, 6 6 ... 7 7 }: let 8 - inherit (inputs.self.lib.config) flake shell; 8 + inherit (config.my.config) flake shell; 9 9 cfg = config.my.cli.essentials; 10 10 in { 11 11 options.my.cli.essentials.enable = lib.mkEnableOption "essentials";
+1 -1
nix/home/modules/cli/git/default.nix
··· 4 4 lib, 5 5 ... 6 6 }: let 7 - inherit (inputs.self.lib.config) email name; 7 + inherit (config.my.config) email name; 8 8 cfg = config.my.cli.git; 9 9 in { 10 10 options.my.cli.git = {
+1 -1
nix/home/modules/de/gnome/theming/default.nix
··· 5 5 pkgs, 6 6 ... 7 7 }: let 8 - inherit (inputs.self.lib.config) profilePicture wallpaper; 8 + inherit (config.my.config) profilePicture wallpaper; 9 9 cfg = config.my.de.gnome.theming; 10 10 in { 11 11 options.my.de.gnome.theming = {
+1 -1
nix/home/modules/de/hyprland/default.nix
··· 5 5 pkgs, 6 6 ... 7 7 }: let 8 - inherit (inputs.self.lib.config) kb; 8 + inherit (config.my.config) kb; 9 9 cfg = config.my.de.hyprland; 10 10 in { 11 11 imports = [
+1 -1
nix/home/modules/development/nixd.nix
··· 31 31 command = "${lib.getExe pkgs.nixd-lix}"; 32 32 args = ["--semantic-tokens=true"]; 33 33 config.nixd = let 34 - inherit (inputs.self.lib.config) flake; 34 + inherit (config.my.config) flake; 35 35 inherit (pkgs.stdenv.hostPlatform) system; 36 36 inherit (config.home) username; 37 37 absoluteFlakePath = builtins.replaceStrings ["~"] [config.home.homeDirectory] flake.path;
+1 -1
nix/home/modules/gui/default.nix
··· 36 36 ]; 37 37 38 38 home.file = let 39 - inherit (inputs.self.lib.config) profilePicture wallpaper; 39 + inherit (config.my.config) profilePicture wallpaper; 40 40 in { 41 41 "${config.home.homeDirectory}/.face".source = profilePicture; 42 42 "${config.xdg.userDirs.pictures}/Wallpapers/${baseNameOf wallpaper}".source = wallpaper;
+1 -1
nix/home/modules/nix/default.nix
··· 6 6 pkgs, 7 7 ... 8 8 }: let 9 - inherit (inputs.self.lib.config) nix; 9 + inherit (config.my.config) nix; 10 10 cfg = config.my.nix; 11 11 in { 12 12 options.my.nix.enable = lib.mkEnableOption "nix";
+2 -2
nix/nixos/configs/desktop/default.nix
··· 1 - {inputs, ...}: let 2 - inherit (inputs.self.lib.config) name; 1 + {config, ...}: let 2 + inherit (config.my.config) name; 3 3 in { 4 4 imports = [ 5 5 ./hardware-configuration.nix
+2 -1
nix/nixos/configs/desktop/storage.nix
··· 1 1 { 2 + config, 2 3 inputs, 3 4 lib, 4 5 ... 5 6 }: let 6 7 inherit (inputs.self.lib.storage.btrfs) mkSecondaryStorage mkStorage; 7 - inherit (inputs.self.lib.config) name; 8 + inherit (config.my.config) name; 8 9 in 9 10 lib.mkMerge [ 10 11 (mkStorage {
+2 -2
nix/nixos/configs/laptop/default.nix
··· 1 - {inputs, ...}: let 2 - inherit (inputs.self.lib.config) name; 1 + {config, ...}: let 2 + inherit (config.my.config) name; 3 3 in { 4 4 imports = [ 5 5 ./hardware-configuration.nix
+2 -2
nix/nixos/configs/raspberrypi/default.nix
··· 1 1 { 2 - inputs, 2 + config, 3 3 pkgs, 4 4 ... 5 5 }: let 6 - inherit (inputs.self.lib.config) name; 6 + inherit (config.my.config) name; 7 7 in { 8 8 imports = [ 9 9 ./hardware-configuration.nix
+2 -1
nix/nixos/configs/steamdeck/default.nix
··· 1 1 { 2 + config, 2 3 inputs, 3 4 ezModules, 4 5 ... 5 6 }: let 6 - inherit (inputs.self.lib.config) name; 7 + inherit (config.my.config) name; 7 8 in { 8 9 imports = [ 9 10 inputs.jovian.nixosModules.default
+2 -1
nix/nixos/configs/steamdeck/storage.nix
··· 1 1 { 2 + config, 2 3 inputs, 3 4 lib, 4 5 ... 5 6 }: let 6 - inherit (inputs.self.lib.config) name; 7 7 inherit (inputs.self.lib.storage.btrfs) mkStorage; 8 + inherit (config.my.config) name; 8 9 in 9 10 lib.mkMerge [ 10 11 (mkStorage {
+1 -1
nix/nixos/modules/gaming/default.nix
··· 5 5 pkgs, 6 6 ... 7 7 }: let 8 - inherit (inputs.self.lib.config) name; 8 + inherit (config.my.config) name; 9 9 cfg = config.my.gaming; 10 10 in { 11 11 imports = [
+2 -2
nix/nixos/modules/locale/default.nix
··· 1 - {inputs, ...}: { 1 + {config, ...}: { 2 2 time = { 3 3 timeZone = "America/Sao_Paulo"; 4 4 hardwareClockInLocalTime = true; ··· 12 12 }; 13 13 console.useXkbConfig = true; # use xkb.options in tty. 14 14 services.xserver.xkb = { 15 - inherit (inputs.self.lib.config.kb.default) layout options variant; 15 + inherit (config.my.config.kb.default) layout options variant; 16 16 }; 17 17 }
+1 -1
nix/nixos/modules/nix/default.nix
··· 5 5 pkgs, 6 6 ... 7 7 }: let 8 - inherit (inputs.self.lib.config) nix; 8 + inherit (config.my.config) nix; 9 9 cfg = config.my.nix; 10 10 in { 11 11 options.my.nix.enable = lib.mkEnableOption "nix";
+1 -1
nix/nixos/modules/secrets/atuin.nix
··· 5 5 pkgs, 6 6 ... 7 7 }: let 8 - inherit (inputs.self.lib.config) name; 8 + inherit (config.my.config) name; 9 9 in { 10 10 sops.secrets = 11 11 lib.genAttrs
+1 -1
nix/nixos/modules/secrets/extraNixOptions.nix
··· 3 3 inputs, 4 4 ... 5 5 }: let 6 - inherit (inputs.self.lib.config) name; 6 + inherit (config.my.config) name; 7 7 in { 8 8 sops.secrets."nix/extraAccessTokens" = { 9 9 mode = "0400";
+1 -1
nix/nixos/modules/steamos.nix
··· 4 4 lib, 5 5 ... 6 6 }: let 7 - inherit (inputs.self.lib.config) name; 7 + inherit (config.my.config) name; 8 8 cfg = config.my.steamos; 9 9 in { 10 10 options.my.steamos.enable = lib.mkEnableOption "SteamOS";
+1 -1
nix/nixos/modules/syncthing/default.nix
··· 4 4 lib, 5 5 ... 6 6 }: let 7 - inherit (inputs.self.lib.config) name; 7 + inherit (config.my.config) name; 8 8 home = "/home/${name.user}"; 9 9 sopsFile = "${inputs.self}/secrets/hosts/${config.networking.hostName}.yaml"; 10 10 in
+1 -1
nix/nixos/modules/tailscale/default.nix
··· 5 5 options, 6 6 ... 7 7 }: let 8 - inherit (inputs.self.lib.config) name; 8 + inherit (config.my.config) name; 9 9 cfg = config.my.networking.tailscale; 10 10 in { 11 11 options.my.networking.tailscale = {
+1 -5
nix/nixos/modules/users/default.nix
··· 1 - # Edit this configuration file to define what should be installed on 2 - # your system. Help is available in the configuration.nix(5) man page, on 3 - # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). 4 1 { 5 2 config, 6 - inputs, 7 3 lib, 8 4 pkgs, 9 5 ... 10 6 }: let 11 - inherit (inputs.self.lib.config) name shell; 7 + inherit (config.my.config) name shell; 12 8 userName = name.user; 13 9 cfg = config.my.users; 14 10 in {
+12 -2
nix/shared/default.nix
··· 1 - {inputs, ...}: let 1 + { 2 + inputs, 3 + lib, 4 + ... 5 + }: let 2 6 inherit (inputs) self; 3 7 inherit (self.lib.config.nix) settings; 4 8 in { ··· 6 10 ./theming.nix 7 11 ]; 8 12 9 - nix = {inherit settings;}; 13 + options = { 14 + my.config = lib.mkOption {default = self.lib.config;}; 15 + }; 16 + 17 + config = { 18 + nix = {inherit settings;}; 19 + }; 10 20 }