mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-04-16 15:28:18 +02:00
chore: Fix nixd / statix errors
I'm okay with editing hardware-configuration.nix now that I understand how it works.
This commit is contained in:
parent
b397048a31
commit
f73e302f2e
12
flake.nix
12
flake.nix
@ -90,7 +90,7 @@
|
|||||||
let
|
let
|
||||||
directory = replaceStrings flakeOutputs flakeDirectories attributeName;
|
directory = replaceStrings flakeOutputs flakeDirectories attributeName;
|
||||||
|
|
||||||
attributeValue = (listToAttrs
|
attributeValue = listToAttrs
|
||||||
(map
|
(map
|
||||||
(file: {
|
(file: {
|
||||||
name = replaceStrings [ ".nix" ] [ "" ] file;
|
name = replaceStrings [ ".nix" ] [ "" ] file;
|
||||||
@ -107,9 +107,9 @@
|
|||||||
}
|
}
|
||||||
else import ./${directory}/${file};
|
else import ./${directory}/${file};
|
||||||
})
|
})
|
||||||
(attrNames (readDir ./${directory}))));
|
(attrNames (readDir ./${directory})));
|
||||||
|
|
||||||
aarch64Packages = (listToAttrs
|
aarch64Packages = listToAttrs
|
||||||
(map
|
(map
|
||||||
(file: {
|
(file: {
|
||||||
name = replaceStrings [ ".nix" ] [ "" ] file;
|
name = replaceStrings [ ".nix" ] [ "" ] file;
|
||||||
@ -118,7 +118,7 @@
|
|||||||
then aarch64-linux.callPackage ./${directory}/${file} { }
|
then aarch64-linux.callPackage ./${directory}/${file} { }
|
||||||
else null;
|
else null;
|
||||||
})
|
})
|
||||||
(attrNames (readDir ./${directory}))));
|
(attrNames (readDir ./${directory})));
|
||||||
|
|
||||||
attributeSet =
|
attributeSet =
|
||||||
if directory == "packages"
|
if directory == "packages"
|
||||||
@ -133,7 +133,7 @@
|
|||||||
}
|
}
|
||||||
else attributeValue;
|
else attributeValue;
|
||||||
in
|
in
|
||||||
(attributeSet);
|
attributeSet;
|
||||||
})
|
})
|
||||||
(flakeOutputs)));
|
flakeOutputs));
|
||||||
}
|
}
|
||||||
|
@ -261,7 +261,8 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile.${gapsScript} = {
|
xdg.configFile = {
|
||||||
|
${gapsScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = /* fish */ ''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
@ -273,7 +274,7 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile.${setBackgroundScript} = {
|
${setBackgroundScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = /* fish */ ''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
@ -299,7 +300,7 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile.${randomBackgroundScript} = {
|
${randomBackgroundScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = /* fish */ ''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
@ -310,7 +311,7 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile.${swapBackgroundScript} = {
|
${swapBackgroundScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = /* fish */ ''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
@ -324,7 +325,7 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile.${monitorScript} = {
|
${monitorScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = /* fish */ ''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
@ -336,6 +337,7 @@ in
|
|||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.hyprlock = {
|
programs.hyprlock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -13,7 +13,8 @@ in
|
|||||||
{
|
{
|
||||||
home.packages = [ ironbar ];
|
home.packages = [ ironbar ];
|
||||||
|
|
||||||
xdg.configFile."ironbar/config.json".text = toJSON {
|
xdg.configFile = {
|
||||||
|
"ironbar/config.json".text = toJSON {
|
||||||
name = "main";
|
name = "main";
|
||||||
icon_theme = "Fluent-dark";
|
icon_theme = "Fluent-dark";
|
||||||
position = "bottom";
|
position = "bottom";
|
||||||
@ -68,7 +69,7 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."ironbar/style.css".text = /* css */ ''
|
"ironbar/style.css".text = /* css */ ''
|
||||||
* {
|
* {
|
||||||
font-family: "Noto Sans CJK JP", "Font Awesome 6 Free Solid";
|
font-family: "Noto Sans CJK JP", "Font Awesome 6 Free Solid";
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@ -175,7 +176,7 @@ in
|
|||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
xdg.configFile.${mullvadScript} = {
|
${mullvadScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = /* fish */ ''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
@ -243,7 +244,7 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile.${volumeScript} = {
|
${volumeScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = /* fish */ ''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
@ -259,7 +260,7 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile.${volumeGet} = {
|
${volumeGet} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* fish */ ''
|
text = /* fish */ ''
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
@ -268,4 +269,5 @@ in
|
|||||||
echo "音量:$(math "$VOLUME * 100")%"
|
echo "音量:$(math "$VOLUME * 100")%"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,15 @@
|
|||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ];
|
boot = {
|
||||||
boot.initrd.kernelModules = [ ];
|
initrd = {
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ];
|
||||||
boot.extraModulePackages = [ ];
|
kernelModules = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
kernelModules = [ "kvm-amd" ];
|
||||||
|
extraModulePackages = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-label/nixos";
|
device = "/dev/disk/by-label/nixos";
|
||||||
|
@ -171,18 +171,19 @@ in
|
|||||||
fonts = {
|
fonts = {
|
||||||
enableDefaultPackages = false;
|
enableDefaultPackages = false;
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = [
|
||||||
noto-fonts
|
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
noto-fonts-cjk-serif
|
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
maple-mono
|
maple-mono
|
||||||
|
aleo-fonts
|
||||||
|
] ++ (with pkgs; [
|
||||||
|
noto-fonts
|
||||||
|
noto-fonts-cjk-serif
|
||||||
font-awesome
|
font-awesome
|
||||||
(nerdfonts.override { fonts = [ "Noto" ]; })
|
(nerdfonts.override { fonts = [ "Noto" ]; })
|
||||||
kanji-stroke-order-font
|
kanji-stroke-order-font
|
||||||
liberation_ttf
|
liberation_ttf
|
||||||
aleo-fonts
|
]);
|
||||||
];
|
|
||||||
|
|
||||||
fontconfig = {
|
fontconfig = {
|
||||||
defaultFonts = {
|
defaultFonts = {
|
||||||
|
@ -6,11 +6,12 @@ let
|
|||||||
inherit (builtins) attrValues;
|
inherit (builtins) attrValues;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
|
||||||
users.defaultUserShell = fish;
|
users.defaultUserShell = fish;
|
||||||
environment.shells = [ fish ];
|
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment = {
|
||||||
|
shells = [ fish ];
|
||||||
|
|
||||||
|
sessionVariables = {
|
||||||
GIT_DISCOVERY_ACROSS_FILESYSTEM = "1";
|
GIT_DISCOVERY_ACROSS_FILESYSTEM = "1";
|
||||||
FZF_DEFAULT_OPTS = "--height 40% --reverse --border --color=16";
|
FZF_DEFAULT_OPTS = "--height 40% --reverse --border --color=16";
|
||||||
NODE_OPTIONS = "--max-old-space-size=16384";
|
NODE_OPTIONS = "--max-old-space-size=16384";
|
||||||
@ -18,7 +19,7 @@ in
|
|||||||
GATSBY_TELEMETRY_DISABLED = "1";
|
GATSBY_TELEMETRY_DISABLED = "1";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = mkMerge [
|
systemPackages = mkMerge [
|
||||||
(attrValues {
|
(attrValues {
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
wget
|
wget
|
||||||
@ -119,6 +120,7 @@ in
|
|||||||
;
|
;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
@ -129,5 +131,4 @@ in
|
|||||||
silent = true;
|
silent = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user