reformat with nixfmt-rfc-style
This commit is contained in:
parent
029dc5d1eb
commit
ce784026b8
50
flake.lock
50
flake.lock
|
@ -239,11 +239,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1708591310,
|
||||
"narHash": "sha256-8mQGVs8JccWTnORgoLOTh9zvf6Np+x2JzhIc+LDcJ9s=",
|
||||
"lastModified": 1709204054,
|
||||
"narHash": "sha256-U1idK0JHs1XOfSI1APYuXi4AEADf+B+ZU4Wifc0pBHk=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "0e0e9669547e45ea6cca2de4044c1a384fd0fe55",
|
||||
"rev": "2f3367769a93b226c467551315e9e270c3f78b15",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -260,11 +260,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1708585220,
|
||||
"narHash": "sha256-eQ5nGEEW4I8Btwso6Q940xilYG7QNyTuocfB0awjpA8=",
|
||||
"lastModified": 1709295149,
|
||||
"narHash": "sha256-+blV8vKyvh3gYnUFYTOu2yuWxEEBqwS7hfLm6qdpoe4=",
|
||||
"owner": "jovian-experiments",
|
||||
"repo": "jovian-nixos",
|
||||
"rev": "2654de9ed084890d1814a841c4f863e9d7a44d54",
|
||||
"rev": "0ef51034dcc8b65b8be72eedd0d5db7d426ea054",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -309,11 +309,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1708225687,
|
||||
"narHash": "sha256-NJBDfvknI26beOFmjO2coeJMTTUCCtw2Iu+rvJ1Zb9k=",
|
||||
"lastModified": 1708830466,
|
||||
"narHash": "sha256-nGKe3Y1/jkLR2eh1aRSVBtKadMBNv8kOnB52UXqRy6A=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-index-database",
|
||||
"rev": "17352eb241a8d158c4ac523b19d8d2a6c8efe127",
|
||||
"rev": "f070c7eeec3bde8c8c8baa9c02b6d3d5e114d73b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -324,11 +324,11 @@
|
|||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1708594753,
|
||||
"narHash": "sha256-c/gH7iXS/IYH9NrFOT+aJqTq+iEBkvAkpWuUHGU3+f0=",
|
||||
"lastModified": 1709147990,
|
||||
"narHash": "sha256-vpXMWoaCtMYJ7lisJedCRhQG9BSsInEyZnnG5GfY9tQ=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "3f7d0bca003eac1a1a7f4659bbab9c8f8c2a0958",
|
||||
"rev": "33a97b5814d36ddd65ad678ad07ce43b1a67f159",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -339,11 +339,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1708655239,
|
||||
"narHash": "sha256-ZrP/yACUvDB+zbqYJsln4iwotbH6CTZiTkANJ0AgDv4=",
|
||||
"lastModified": 1709237383,
|
||||
"narHash": "sha256-cy6ArO4k5qTx+l5o+0mL9f5fa86tYUX3ozE1S+Txlds=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "cbc4211f0afffe6dfd2478a62615dd5175a13f9a",
|
||||
"rev": "1536926ef5621b09bba54035ae2bb6d806d72ac8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -383,11 +383,11 @@
|
|||
"pre-commit-hooks": "pre-commit-hooks"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1708614940,
|
||||
"narHash": "sha256-36muWApzetaV4WAEeqKsWxW4k2l0u3E841RI4sHPiz0=",
|
||||
"lastModified": 1709303299,
|
||||
"narHash": "sha256-sBMl8/pvsuRHOre2wu3du9eQmk5K8rGHi/+noz4c3lg=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixvim",
|
||||
"rev": "060a05138ca1a46fc0a0f79ef27f080cac57a59e",
|
||||
"rev": "ec687c5adefed06a70c91c002fcbcbcd2cb40005",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -457,11 +457,11 @@
|
|||
},
|
||||
"private": {
|
||||
"locked": {
|
||||
"lastModified": 1708040288,
|
||||
"narHash": "sha256-xJY8FztA02HSaFxYuuaBmwVw54zTjqY4Old0QDzeQIc=",
|
||||
"lastModified": 1709351173,
|
||||
"narHash": "sha256-6Xw6654Sj9LQ3gYhFox/ab8pSVF1jleygb7T6ZlXjHU=",
|
||||
"ref": "unified",
|
||||
"rev": "6f1245d222b56427cae3073df28bd0ff9a4d6d87",
|
||||
"revCount": 41,
|
||||
"rev": "14ff812b8ebc6e4573ff2954c515f909b03ccf7f",
|
||||
"revCount": 44,
|
||||
"type": "git",
|
||||
"url": "ssh://forgejo@git.mildlyfunctional.gay/artemist/nixos-config-private"
|
||||
},
|
||||
|
@ -570,11 +570,11 @@
|
|||
"systems": "systems_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1705309234,
|
||||
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
||||
"lastModified": 1709126324,
|
||||
"narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
||||
"rev": "d465f4819400de7c8d874d50b982301f28a84605",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
52
flake.nix
52
flake.nix
|
@ -34,8 +34,7 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
rustybar = {
|
||||
url =
|
||||
"git+https://git.mildlyfunctional.gay/mildlyfunctionalgays/rustybar.git";
|
||||
url = "git+https://git.mildlyfunctional.gay/mildlyfunctionalgays/rustybar.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.utils.follows = "utils";
|
||||
};
|
||||
|
@ -45,39 +44,56 @@
|
|||
inputs.nix-github-actions.follows = "";
|
||||
};
|
||||
|
||||
private.url =
|
||||
"git+ssh://forgejo@git.mildlyfunctional.gay/artemist/nixos-config-private?ref=unified";
|
||||
private.url = "git+ssh://forgejo@git.mildlyfunctional.gay/artemist/nixos-config-private?ref=unified";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, utils, nixvim, ... }@inputs:
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
utils,
|
||||
nixvim,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
baseDir = ./system;
|
||||
lib = nixpkgs.lib;
|
||||
makeSystem = module:
|
||||
makeSystem =
|
||||
module:
|
||||
lib.nixosSystem (rec {
|
||||
specialArgs = { inherit inputs; };
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
{ home-manager.extraSpecialArgs = specialArgs; }
|
||||
] ++ [ module ];
|
||||
});
|
||||
in {
|
||||
nixosConfigurations =
|
||||
lib.mapAttrs (name: _: makeSystem (baseDir + "/${name}"))
|
||||
(builtins.readDir baseDir);
|
||||
} // utils.lib.eachDefaultSystem (system:
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
formatter = pkgs.nixfmt;
|
||||
in
|
||||
{
|
||||
nixosConfigurations = lib.mapAttrs (name: _: makeSystem (baseDir + "/${name}")) (
|
||||
builtins.readDir baseDir
|
||||
);
|
||||
}
|
||||
// utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
formatter = pkgs.nixfmt-rfc-style;
|
||||
packages = {
|
||||
nvim = inputs.nixvim.legacyPackages."${system}".makeNixvimWithModule {
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
module = import ./sets/nvim.nix {
|
||||
path = [ ];
|
||||
inherit (pkgs) lib;
|
||||
};
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = "set -g -x GPG_TTY (tty)";
|
||||
|
@ -9,5 +10,8 @@
|
|||
nix-fish = "nix-shell --command fish";
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs; [ bat eza ];
|
||||
home.packages = with pkgs; [
|
||||
bat
|
||||
eza
|
||||
];
|
||||
}
|
||||
|
|
13
home/git.nix
13
home/git.nix
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
|
@ -8,7 +9,12 @@
|
|||
key = "D2173817C3E4B155EA8FFF49A54531E0D32143ED";
|
||||
signByDefault = true;
|
||||
};
|
||||
ignores = [ "compile_commands.json" ".clangd/" ".idea/" ".config/clangd" ];
|
||||
ignores = [
|
||||
"compile_commands.json"
|
||||
".clangd/"
|
||||
".idea/"
|
||||
".config/clangd"
|
||||
];
|
||||
lfs.enable = true;
|
||||
delta.enable = true;
|
||||
extraConfig = {
|
||||
|
@ -19,8 +25,7 @@
|
|||
init.defaultBranch = "canon";
|
||||
log.showSignature = true;
|
||||
|
||||
credential.helper =
|
||||
"!${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper $@";
|
||||
credential.helper = "!${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper $@";
|
||||
sendemail = {
|
||||
smtpServer = "smtp.fastmail.com";
|
||||
smtpUser = "me@artem.ist";
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ config, ... }: {
|
||||
{ config, ... }:
|
||||
{
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
enableExtraSocket = true;
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
{ ... }:
|
||||
let common-gtk = { gtk-application-prefer-dark-theme = true; };
|
||||
in {
|
||||
let
|
||||
common-gtk = {
|
||||
gtk-application-prefer-dark-theme = true;
|
||||
};
|
||||
in
|
||||
{
|
||||
home.sessionVariables.GTK_THEME = "Adwaita:dark";
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
|
11
home/mpv.nix
11
home/mpv.nix
|
@ -2,11 +2,9 @@
|
|||
let
|
||||
ffmpeg = pkgs.ffmpeg-full;
|
||||
scripts = with pkgs.mpvScripts; [ sponsorblock ];
|
||||
mpv = pkgs.wrapMpv (pkgs.mpv-unwrapped.override { inherit ffmpeg; }) {
|
||||
inherit scripts;
|
||||
};
|
||||
|
||||
in {
|
||||
mpv = pkgs.wrapMpv (pkgs.mpv-unwrapped.override { inherit ffmpeg; }) { inherit scripts; };
|
||||
in
|
||||
{
|
||||
home.packages = [ ffmpeg ];
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
|
@ -21,8 +19,7 @@ in {
|
|||
audio-normalize-downmix = "yes";
|
||||
replaygain = "track";
|
||||
|
||||
script-opts-set =
|
||||
"sponsorblock-local_database=no,sponsorblock-skip_categories=[sponsor,intro,selfpromo]";
|
||||
script-opts-set = "sponsorblock-local_database=no,sponsorblock-skip_categories=[sponsor,intro,selfpromo]";
|
||||
};
|
||||
# Don't make this profile default since not all machines can handle it
|
||||
profiles.gpu-hq = {
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
{ pkgs, lib, config, inputs, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
rustybar = inputs.rustybar.defaultPackage."${pkgs.system}";
|
||||
cfg = config.wayland.windowManager.sway;
|
||||
|
@ -18,15 +24,22 @@ let
|
|||
F11 = "21";
|
||||
F12 = "22";
|
||||
};
|
||||
extraGotoBindings = lib.mapAttrs' (name: value: {
|
||||
extraGotoBindings =
|
||||
lib.mapAttrs'
|
||||
(name: value: {
|
||||
name = "${mod}+${name}";
|
||||
value = "workspace ${value}";
|
||||
}) extraWorkspaces;
|
||||
extraMoveBindings = lib.mapAttrs' (name: value: {
|
||||
})
|
||||
extraWorkspaces;
|
||||
extraMoveBindings =
|
||||
lib.mapAttrs'
|
||||
(name: value: {
|
||||
name = "${mod}+Shift+${name}";
|
||||
value = "move container to workspace ${value}";
|
||||
}) extraWorkspaces;
|
||||
in {
|
||||
})
|
||||
extraWorkspaces;
|
||||
in
|
||||
{
|
||||
home.sessionVariables = {
|
||||
MOZ_USE_XINPUT2 = 1;
|
||||
_JAVA_AWT_WM_NONREPARENTING = 1;
|
||||
|
@ -60,8 +73,7 @@ in {
|
|||
always = true;
|
||||
}
|
||||
{
|
||||
command =
|
||||
"swayidle -w before-sleep 'swaylock -f' timeout 600 'swaylock -f' timeout 660 'swaymsg \"output * dpms off\"' resume 'swaymsg \"output * dpms on\"'";
|
||||
command = "swayidle -w before-sleep 'swaylock -f' timeout 600 'swaylock -f' timeout 660 'swaymsg \"output * dpms off\"' resume 'swaymsg \"output * dpms on\"'";
|
||||
}
|
||||
];
|
||||
|
||||
|
@ -70,7 +82,8 @@ in {
|
|||
down = "Mod1+Down";
|
||||
up = "Mod1+Up";
|
||||
right = "Mod1+Right";
|
||||
keybindings = lib.mkOptionDefault ({
|
||||
keybindings = lib.mkOptionDefault (
|
||||
{
|
||||
"${mod}+Shift+d" = "exec wofi -I -i -S drun";
|
||||
"${mod}+j" = "move workspace to left";
|
||||
"${mod}+k" = "move workspace to right";
|
||||
|
@ -86,16 +99,18 @@ in {
|
|||
"Shift+XF86MonBrightnessUp" = "exec light -A 1";
|
||||
"XF86MonBrightnessDown" = "exec light -U 5";
|
||||
"Shift+XF86MonBrightnessDown" = "exec light -U 1";
|
||||
"Print" = ''
|
||||
exec grim "$(xdg-user-dir PICTURES)/Screenshot/$(date +'%F %H-%M-%S-%N_screenshot.png')"'';
|
||||
"Shift+Print" = ''
|
||||
exec grim -g "$(slurp)" "$(xdg-user-dir PICTURES)/Screenshot/$(date +'%F %H-%M-%S-%N_screenshot.png')"'';
|
||||
} // extraGotoBindings // extraMoveBindings);
|
||||
"Print" = ''exec grim "$(xdg-user-dir PICTURES)/Screenshot/$(date +'%F %H-%M-%S-%N_screenshot.png')"'';
|
||||
"Shift+Print" = ''exec grim -g "$(slurp)" "$(xdg-user-dir PICTURES)/Screenshot/$(date +'%F %H-%M-%S-%N_screenshot.png')"'';
|
||||
}
|
||||
// extraGotoBindings
|
||||
// extraMoveBindings
|
||||
);
|
||||
|
||||
floating.titlebar = true;
|
||||
window.titlebar = true;
|
||||
|
||||
bars = [{
|
||||
bars = [
|
||||
{
|
||||
statusCommand = "${rustybar}/bin/rustybar";
|
||||
position = "top";
|
||||
fonts = cfg.config.fonts;
|
||||
|
@ -109,7 +124,8 @@ in {
|
|||
text = "#ffffffd0";
|
||||
};
|
||||
};
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -34,26 +34,39 @@ let
|
|||
"ffffff"
|
||||
];
|
||||
};
|
||||
colorNames =
|
||||
[ "black" "red" "green" "yellow" "blue" "magenta" "cyan" "white" ];
|
||||
namedColors = prefix: colors:
|
||||
listToAttrs
|
||||
(zipListsWith nameValuePair colorNames (map (c: prefix + c) colors));
|
||||
numberedColors = attrPrefix: valuePrefix: attrOffset: colors:
|
||||
listToAttrs (zipListsWith nameValuePair
|
||||
(map (i: attrPrefix + toString (i + attrOffset)) (range 0 7))
|
||||
(map (c: valuePrefix + c) colors));
|
||||
colorNames = [
|
||||
"black"
|
||||
"red"
|
||||
"green"
|
||||
"yellow"
|
||||
"blue"
|
||||
"magenta"
|
||||
"cyan"
|
||||
"white"
|
||||
];
|
||||
namedColors =
|
||||
prefix: colors: listToAttrs (zipListsWith nameValuePair colorNames (map (c: prefix + c) colors));
|
||||
numberedColors =
|
||||
attrPrefix: valuePrefix: attrOffset: colors:
|
||||
listToAttrs (
|
||||
zipListsWith nameValuePair (map (i: attrPrefix + toString (i + attrOffset)) (range 0 7)) (
|
||||
map (c: valuePrefix + c) colors
|
||||
)
|
||||
);
|
||||
|
||||
font = {
|
||||
name = "Fira Code";
|
||||
size = 9;
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
# Not used on most systems
|
||||
programs.foot = {
|
||||
settings = {
|
||||
main.font = "${font.name}:size=${toString font.size}";
|
||||
colors = colors.primary // (numberedColors "regular" "" 0 colors.normal)
|
||||
colors =
|
||||
colors.primary
|
||||
// (numberedColors "regular" "" 0 colors.normal)
|
||||
// (numberedColors "bright" "" 0 colors.bright);
|
||||
};
|
||||
};
|
||||
|
@ -86,8 +99,7 @@ in {
|
|||
clipboard_control = false;
|
||||
scrollback_lines = 32768;
|
||||
touch_scroll_multiplier = 4;
|
||||
} // (numberedColors "color" "#" 0 colors.normal)
|
||||
// (numberedColors "color" "#" 8 colors.bright);
|
||||
} // (numberedColors "color" "#" 0 colors.normal) // (numberedColors "color" "#" 8 colors.bright);
|
||||
extraConfig = ''
|
||||
symbol_map U+e000-U+f8ff,U+f0000-U+f2000 Symbols Nerd Font Mono
|
||||
'';
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
terminal = "screen-256color";
|
||||
historyLimit = 65536;
|
||||
clock24 = true;
|
||||
plugins = with pkgs.tmuxPlugins; [{
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
{
|
||||
plugin = catppuccin;
|
||||
extraConfig = ''
|
||||
set -g @catppuccin_flavour 'mocha'
|
||||
'';
|
||||
}];
|
||||
}
|
||||
];
|
||||
extraConfig = ''
|
||||
bind '"' split-window -c "#{pane_current_path}"
|
||||
bind % split-window -h -c "#{pane_current_path}"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ config, ... }: {
|
||||
{ config, ... }:
|
||||
{
|
||||
home.sessionVariables = {
|
||||
ANDROID_USER_HOME = "${config.xdg.dataHome}/android";
|
||||
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
programs.firefox.policies.ExtensionSettings = {
|
||||
"{25fc87fa-4d31-4fee-b5c1-c32a7844c063}" = {
|
||||
installation_mode = "normal_installed";
|
||||
install_url =
|
||||
"https://c.1password.com/dist/1P/b5x/firefox/beta/latest.xpi";
|
||||
install_url = "https://c.1password.com/dist/1P/b5x/firefox/beta/latest.xpi";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
{ lib, ... }: {
|
||||
nixpkgs.hostPlatform =
|
||||
lib.recursiveUpdate lib.systems.platforms.aarch64-multiplatform {
|
||||
{ lib, ... }:
|
||||
{
|
||||
nixpkgs.hostPlatform = lib.recursiveUpdate lib.systems.platforms.aarch64-multiplatform {
|
||||
linux-kernel = {
|
||||
target = "vmlinuz.efi";
|
||||
installTarget = "zinstall";
|
||||
};
|
||||
};
|
||||
|
||||
boot.kernelPatches = [{
|
||||
boot.kernelPatches = [
|
||||
{
|
||||
name = "zboot-enable";
|
||||
patch = null;
|
||||
extraStructuredConfig = with lib.kernel; {
|
||||
|
@ -15,5 +16,6 @@
|
|||
KERNEL_ZSTD = yes;
|
||||
DEBUG_INFO_BTF = no;
|
||||
};
|
||||
}];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
@ -6,8 +12,9 @@
|
|||
inputs.private.nixosModules.substituter
|
||||
];
|
||||
|
||||
systemd.tmpfiles.rules = lib.mapAttrsToList
|
||||
(key: value: "L+ /etc/channels/${key} - - - - ${value.outPath}") inputs;
|
||||
systemd.tmpfiles.rules =
|
||||
lib.mapAttrsToList (key: value: "L+ /etc/channels/${key} - - - - ${value.outPath}")
|
||||
inputs;
|
||||
|
||||
nix = {
|
||||
nixPath = [ "/etc/channels" ];
|
||||
|
@ -17,7 +24,11 @@
|
|||
};
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
"ca-derivations"
|
||||
];
|
||||
trusted-users = [ "@wheel" ];
|
||||
use-xdg-base-directories = true;
|
||||
};
|
||||
|
@ -30,9 +41,12 @@
|
|||
};
|
||||
|
||||
nixpkgs = {
|
||||
overlays =
|
||||
[ inputs.artemist.overlays.default inputs.fonts.overlays.default ];
|
||||
config.allowUnfreePredicate = pkg:
|
||||
overlays = [
|
||||
inputs.artemist.overlays.default
|
||||
inputs.fonts.overlays.default
|
||||
];
|
||||
config.allowUnfreePredicate =
|
||||
pkg:
|
||||
(pkg ? passthru && pkg.passthru ? font && pkg.passthru.font)
|
||||
|| (builtins.elem (lib.getName pkg) [
|
||||
"1password"
|
||||
|
@ -67,7 +81,10 @@
|
|||
isNormalUser = true;
|
||||
description = "Artemis Tosini";
|
||||
uid = 1000;
|
||||
extraGroups = [ "wheel" "artemis" ];
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"artemis"
|
||||
];
|
||||
shell = pkgs.fish;
|
||||
# hashedPassword set in private
|
||||
};
|
||||
|
@ -78,10 +95,12 @@
|
|||
security.sudo.execWheelOnly = true;
|
||||
|
||||
systemd.extraConfig = "DefaultLimitCORE=infinity";
|
||||
security.pam.loginLimits = [{
|
||||
security.pam.loginLimits = [
|
||||
{
|
||||
domain = "*";
|
||||
item = "core";
|
||||
type = "hard";
|
||||
value = "infinity";
|
||||
}];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -2,14 +2,21 @@
|
|||
|
||||
{
|
||||
nix = {
|
||||
buildMachines = [{
|
||||
buildMachines = [
|
||||
{
|
||||
hostName = "starlight.manehattan.artem.ist";
|
||||
protocol = "ssh-ng";
|
||||
sshUser = "build";
|
||||
supportedFeatures = [ "kvm" "big-parallel" "benchmark" "nixos-text" ];
|
||||
supportedFeatures = [
|
||||
"kvm"
|
||||
"big-parallel"
|
||||
"benchmark"
|
||||
"nixos-text"
|
||||
];
|
||||
system = "x86_64-linux";
|
||||
maxJobs = 2;
|
||||
}];
|
||||
}
|
||||
];
|
||||
distributedBuilds = true;
|
||||
extraOptions = ''
|
||||
builders-use-substitutes = true
|
||||
|
@ -20,8 +27,7 @@
|
|||
home.stateVersion = config.system.stateVersion;
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
userKnownHostsFile =
|
||||
"~/.ssh/known_hosts ${../home/ssh/extra_known_hosts}";
|
||||
userKnownHostsFile = "~/.ssh/known_hosts ${../home/ssh/extra_known_hosts}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [ cyanrip makemkv ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
cyanrip
|
||||
makemkv
|
||||
];
|
||||
|
||||
# Needed for MakeMKV
|
||||
boot.kernelModules = [ "sg" ];
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [ man-pages ];
|
||||
|
||||
documentation = {
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
{ ... }: {
|
||||
{ ... }:
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
languagePacks = [ "en-US" "de" ];
|
||||
languagePacks = [
|
||||
"en-US"
|
||||
"de"
|
||||
];
|
||||
preferences = {
|
||||
"app.shield.outputstudies.enabled" = false;
|
||||
"browser.urlbar.switchTabs.adoptIntoActiveWindow" = true;
|
||||
|
@ -12,18 +16,15 @@
|
|||
policies.ExtensionSettings = {
|
||||
"uBlock0@raymondhill.net" = {
|
||||
installation_mode = "normal_installed";
|
||||
install_url =
|
||||
"https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||
};
|
||||
"@testpilot-containers" = {
|
||||
installation_mode = "normal_installed";
|
||||
install_url =
|
||||
"https://addons.mozilla.org/firefox/downloads/latest/multi-account-containers/latest.xpi";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/multi-account-containers/latest.xpi";
|
||||
};
|
||||
"sponsorBlocker@ajay.app" = {
|
||||
installation_mode = "normal_installed";
|
||||
install_url =
|
||||
"https://addons.mozilla.org/firefox/downloads/latest/sponsorblock/latest.xpi";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/sponsorblock/latest.xpi";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
monospace = [ "Fira Code" ];
|
||||
serif = [ "DejaVu Serif" ];
|
||||
|
||||
emoji = [ "Noto Color Emoji" "Noto Emoji" ];
|
||||
emoji = [
|
||||
"Noto Color Emoji"
|
||||
"Noto Emoji"
|
||||
];
|
||||
};
|
||||
localConf = ''
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
@ -76,7 +79,8 @@
|
|||
};
|
||||
|
||||
enableDefaultPackages = true;
|
||||
packages = with pkgs;
|
||||
packages =
|
||||
with pkgs;
|
||||
[
|
||||
corefonts
|
||||
dejavu_fonts
|
||||
|
@ -108,6 +112,7 @@
|
|||
|
||||
# Weird symbols
|
||||
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
|
||||
] ++ (builtins.attrValues pkgs.extraFonts);
|
||||
]
|
||||
++ (builtins.attrValues pkgs.extraFonts);
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.udev.packages =
|
||||
[ (pkgs.callPackage ../externals/rules/fpga.nix { }) ];
|
||||
services.udev.packages = [ (pkgs.callPackage ../externals/rules/fpga.nix { }) ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Synthesis
|
||||
icestorm
|
||||
|
|
|
@ -17,5 +17,8 @@
|
|||
fusee-launcher
|
||||
];
|
||||
|
||||
users.users.artemis.extraGroups = [ "adbusers" "wireshark" ];
|
||||
users.users.artemis.extraGroups = [
|
||||
"adbusers"
|
||||
"wireshark"
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.udev.packages = [
|
||||
(pkgs.callPackage ../externals/rules/adafruit.nix { })
|
||||
(pkgs.callPackage ../externals/rules/limesuite.nix { })
|
||||
|
@ -22,7 +23,10 @@
|
|||
];
|
||||
|
||||
users = {
|
||||
users.artemis.extraGroups = [ "plugdev" "dialout" ];
|
||||
users.artemis.extraGroups = [
|
||||
"plugdev"
|
||||
"dialout"
|
||||
];
|
||||
extraGroups.plugdev = { };
|
||||
};
|
||||
}
|
||||
|
|
11
sets/ime.nix
11
sets/ime.nix
|
@ -3,15 +3,20 @@
|
|||
{
|
||||
i18n.inputMethod = {
|
||||
enabled = "fcitx5";
|
||||
fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-gtk ];
|
||||
fcitx5.addons = with pkgs; [
|
||||
fcitx5-mozc
|
||||
fcitx5-gtk
|
||||
];
|
||||
};
|
||||
environment.systemPackages = with pkgs; [ fcitx5-configtool ];
|
||||
|
||||
# Required for support in kitty, ibus/fcitx5 are somewhat compatible so this works
|
||||
environment.variables.GLFW_IM_MODULE = "ibus";
|
||||
|
||||
home-manager.users.artemis.wayland.windowManager.sway.config.startup = [{
|
||||
home-manager.users.artemis.wayland.windowManager.sway.config.startup = [
|
||||
{
|
||||
command = "fcitx5 -d --replace";
|
||||
always = true;
|
||||
}];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -8,6 +8,5 @@
|
|||
programs.light.enable = true;
|
||||
users.users.artemis.extraGroups = [ "video" ];
|
||||
|
||||
environment.systemPackages = with pkgs;
|
||||
[ config.boot.kernelPackages.cpupower ];
|
||||
environment.systemPackages = with pkgs; [ config.boot.kernelPackages.cpupower ];
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ inputs, ... }: {
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [ inputs.nix-index-database.nixosModules.nix-index ];
|
||||
|
||||
programs.command-not-found.enable = false;
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
{ inputs, lib, ... }@args: {
|
||||
{ inputs, lib, ... }@args:
|
||||
{
|
||||
imports = [
|
||||
inputs.nixvim.nixosModules.nixvim
|
||||
(import ./nvim.nix {
|
||||
inherit lib;
|
||||
path = [ "programs" "nixvim" ];
|
||||
path = [
|
||||
"programs"
|
||||
"nixvim"
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
{ lib, path }:
|
||||
{ pkgs, config, ... }:
|
||||
let setPath = if path == [ ] then [ "config" ] else path;
|
||||
in lib.setAttrByPath setPath (let cfg = lib.getAttrFromPath path config;
|
||||
in {
|
||||
let
|
||||
setPath = if path == [ ] then [ "config" ] else path;
|
||||
in
|
||||
lib.setAttrByPath setPath (
|
||||
let
|
||||
cfg = lib.getAttrFromPath path config;
|
||||
in
|
||||
{
|
||||
vimAlias = true;
|
||||
enableMan = false;
|
||||
|
||||
|
@ -139,7 +144,10 @@ in {
|
|||
{ name = "calc"; }
|
||||
{ name = "emoji"; }
|
||||
];
|
||||
mappingPresets = [ "insert" "cmdline" ];
|
||||
mappingPresets = [
|
||||
"insert"
|
||||
"cmdline"
|
||||
];
|
||||
mapping = {
|
||||
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
||||
"<C-b>" = "cmp.mapping.scroll_docs(-4)";
|
||||
|
@ -179,4 +187,5 @@ in {
|
|||
})
|
||||
end
|
||||
'';
|
||||
})
|
||||
}
|
||||
)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
environment.systemPackages = (with pkgs; [
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
environment.systemPackages =
|
||||
(with pkgs; [
|
||||
# Audiovisual
|
||||
darktable
|
||||
exiftool
|
||||
|
@ -111,8 +113,14 @@
|
|||
hicolor-icon-theme
|
||||
|
||||
# Dictionaries
|
||||
]) ++ (with pkgs.hunspellDicts; [ en-us-large de_DE ])
|
||||
++ (lib.optionals (pkgs.system == "x86_64-linux") (with pkgs; [
|
||||
])
|
||||
++ (with pkgs.hunspellDicts; [
|
||||
en-us-large
|
||||
de_DE
|
||||
])
|
||||
++ (lib.optionals (pkgs.system == "x86_64-linux") (
|
||||
with pkgs;
|
||||
[
|
||||
# Web
|
||||
google-chrome
|
||||
|
||||
|
@ -125,5 +133,6 @@
|
|||
cabextract
|
||||
samba
|
||||
wineWowPackages.waylandFull
|
||||
]));
|
||||
]
|
||||
));
|
||||
}
|
||||
|
|
|
@ -12,5 +12,9 @@
|
|||
};
|
||||
hardware.pulseaudio.enable = lib.mkForce false;
|
||||
security.rtkit.enable = true;
|
||||
environment.systemPackages = with pkgs; [ pulseaudio qpwgraph easyeffects ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
pulseaudio
|
||||
qpwgraph
|
||||
easyeffects
|
||||
];
|
||||
}
|
||||
|
|
|
@ -2,5 +2,8 @@
|
|||
|
||||
{
|
||||
services.udev.packages = with pkgs; [ soapysdr-with-plugins ];
|
||||
environment.systemPackages = with pkgs; [ soapysdr-with-plugins gqrx ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
soapysdr-with-plugins
|
||||
gqrx
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ lib, ... }: {
|
||||
{ lib, ... }:
|
||||
{
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
memoryPercent = lib.mkDefault 25;
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{ pkgs, inputs, ... }: {
|
||||
imports = [ ./fonts.nix inputs.private.nixosModules.sway ];
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./fonts.nix
|
||||
inputs.private.nixosModules.sway
|
||||
];
|
||||
security.polkit.enable = true;
|
||||
services = {
|
||||
accounts-daemon.enable = true;
|
||||
|
@ -12,7 +16,10 @@
|
|||
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
|
||||
config = {
|
||||
common.default = [ "gtk" ];
|
||||
sway.default = [ "wlr" "gtk" ];
|
||||
sway.default = [
|
||||
"wlr"
|
||||
"gtk"
|
||||
];
|
||||
};
|
||||
};
|
||||
sound.enable = true;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ ... }: {
|
||||
{ ... }:
|
||||
{
|
||||
security.tpm2 = {
|
||||
enable = true;
|
||||
pkcs11.enable = true;
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
virtualisation = {
|
||||
|
@ -10,9 +15,9 @@
|
|||
enable = true;
|
||||
qemu = {
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ]
|
||||
++ lib.optional (pkgs.system == "x86_64-linux")
|
||||
pkgs.pkgsCross.aarch64-multiplatform.OVMF.fd;
|
||||
ovmf.packages = [
|
||||
pkgs.OVMFFull.fd
|
||||
] ++ lib.optional (pkgs.system == "x86_64-linux") pkgs.pkgsCross.aarch64-multiplatform.OVMF.fd;
|
||||
swtpm.enable = true;
|
||||
vhostUserPackages = [ pkgs.virtiofsd ];
|
||||
runAsRoot = false;
|
||||
|
@ -29,10 +34,16 @@
|
|||
boot.kernel.sysctl."net.bridge.bridge-nf-call-iptables" = 0;
|
||||
|
||||
programs.virt-manager.enable = true;
|
||||
environment.systemPackages = with pkgs; [ spice-gtk qemu ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
spice-gtk
|
||||
qemu
|
||||
];
|
||||
|
||||
users.users = {
|
||||
artemis.extraGroups = [ "lxd" "libvirtd" ];
|
||||
artemis.extraGroups = [
|
||||
"lxd"
|
||||
"libvirtd"
|
||||
];
|
||||
lxd = {
|
||||
isSystemUser = true;
|
||||
subUidRanges = [
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ ... }: {
|
||||
{ ... }:
|
||||
{
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
wifi.macAddress = "stable";
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ pkgs, lib, inputs, ... }@args:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}@args:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ ... }: {
|
||||
{ ... }:
|
||||
{
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ inputs, pkgs, lib, ... }@args:
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}@args:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
@ -29,8 +35,7 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/6cdcaab1-a216-4615-89e7-75e99c1339bb"; }];
|
||||
swapDevices = [ { device = "/dev/disk/by-uuid/6cdcaab1-a216-4615-89e7-75e99c1339bb"; } ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
@ -41,6 +46,5 @@
|
|||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
@ -21,8 +27,7 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/1114039c-3329-4551-a56d-fccde77a31a7"; }];
|
||||
swapDevices = [ { device = "/dev/disk/by-uuid/1114039c-3329-4551-a56d-fccde77a31a7"; } ];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||
}
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
@ -17,7 +22,6 @@
|
|||
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
||||
inputs.nixos-hardware.nixosModules.common-pc-laptop-acpi_call
|
||||
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
||||
|
||||
];
|
||||
|
||||
boot.supportedFilesystems = [ "nfs4" ];
|
||||
|
@ -34,10 +38,12 @@
|
|||
middle_emulation = "enabled";
|
||||
click_method = "clickfinger";
|
||||
};
|
||||
startup = [{
|
||||
startup = [
|
||||
{
|
||||
command = "swayidle -w before-sleep 'light -O' after-resume 'light -I'";
|
||||
always = true;
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
xdg.configFile."rustybar/config.toml".text = ''
|
||||
[[tile]]
|
||||
|
|
|
@ -1,13 +1,24 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"sdhci_pci"
|
||||
];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
@ -29,11 +40,9 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/289be8e5-6547-41d4-a6ba-309141f9fccd"; }];
|
||||
swapDevices = [ { device = "/dev/disk/by-uuid/289be8e5-6547-41d4-a6ba-309141f9fccd"; } ];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
# High-DPI console
|
||||
console.font =
|
||||
lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
|
||||
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ config, pkgs, ... }: {
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
hardware.deviceTree.filter = "rk3588-rock-5b.dtb";
|
||||
|
||||
boot = {
|
||||
|
|
|
@ -12,4 +12,3 @@
|
|||
networking.hostName = "smolder";
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
@ -21,8 +27,7 @@
|
|||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/30f73056-e5c0-4349-bc85-b9a842f4458e"; }];
|
||||
swapDevices = [ { device = "/dev/disk/by-uuid/30f73056-e5c0-4349-bc85-b9a842f4458e"; } ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
initrd.systemd.enable = true;
|
||||
};
|
||||
|
||||
swapDevices = lib.mkForce [{
|
||||
swapDevices = lib.mkForce [
|
||||
{
|
||||
device = "/dev/disk/by-uuid/addae2e4-d7d7-4fcd-b2cb-7635c794d652";
|
||||
encrypted = {
|
||||
enable = true;
|
||||
|
@ -16,7 +17,8 @@
|
|||
blkDev = "/dev/disk/by-uuid/e5381f7c-fb90-4762-8a27-aa05429893e7";
|
||||
keyFile = "/sysroot/var/lib/private/swap_key";
|
||||
};
|
||||
}];
|
||||
}
|
||||
];
|
||||
|
||||
fileSystems."/media/µsd".encrypted = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,13 +1,26 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "bcache" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"ahci"
|
||||
"xhci_pci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"sdhci_pci"
|
||||
"bcache"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
@ -37,6 +50,5 @@
|
|||
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,8 @@ let
|
|||
"x-systemd.device-timeout=5s"
|
||||
"x-systemd.mount-timeout=5s"
|
||||
];
|
||||
in {
|
||||
in
|
||||
{
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||
|
@ -38,6 +39,9 @@ in {
|
|||
|
||||
services.btrfs.autoScrub = {
|
||||
enable = true;
|
||||
fileSystems = [ "/" "/media/data" ];
|
||||
fileSystems = [
|
||||
"/"
|
||||
"/media/data"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
@ -40,7 +46,9 @@
|
|||
interfaces = {
|
||||
lan10g0 = { };
|
||||
lan10g1 = { };
|
||||
lan1g0 = { vlan = 4; };
|
||||
lan1g0 = {
|
||||
vlan = 4;
|
||||
};
|
||||
"vs0.4" = {
|
||||
vlan = 4;
|
||||
type = "internal";
|
||||
|
@ -49,10 +57,12 @@
|
|||
};
|
||||
networking.interfaces."vs0" = {
|
||||
useDHCP = true;
|
||||
ipv6.addresses = [{
|
||||
ipv6.addresses = [
|
||||
{
|
||||
address = "2001:470:8b04:6900:6969:1454:7749:e591";
|
||||
prefixLength = 128;
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.openssh.extraConfig = ''
|
||||
|
@ -62,7 +72,10 @@
|
|||
# Filesystems
|
||||
services.btrfs.autoScrub = {
|
||||
enable = true;
|
||||
fileSystems = [ "/" "/media/data" ];
|
||||
fileSystems = [
|
||||
"/"
|
||||
"/media/data"
|
||||
];
|
||||
};
|
||||
|
||||
# Skye user for luna
|
||||
|
@ -77,7 +90,8 @@
|
|||
|
||||
services.printing.drivers = [
|
||||
pkgs.cups-dymo
|
||||
(pkgs.brlaser.overrideAttrs (old: {
|
||||
(pkgs.brlaser.overrideAttrs (
|
||||
old: {
|
||||
version = "unstable-2023-02-20";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "pdewacht";
|
||||
|
@ -85,13 +99,13 @@
|
|||
rev = "2a49e3287c70c254e7e3ac9dabe9d6a07218c3fa";
|
||||
sha256 = "sha256-1fvO9F7ifbYQHAy54mOx052XutfKXSK6iT/zj4Mhbww=";
|
||||
};
|
||||
}))
|
||||
}
|
||||
))
|
||||
];
|
||||
|
||||
# Home
|
||||
home-manager.users.artemis = {
|
||||
programs.git.signing.key =
|
||||
lib.mkForce "3D2BB230F9FAF0C5183246DD4FDC96F161E7BA8A";
|
||||
programs.git.signing.key = lib.mkForce "3D2BB230F9FAF0C5183246DD4FDC96F161E7BA8A";
|
||||
programs.mpv.defaultProfiles = [ "gpu-hq" ];
|
||||
wayland.windowManager.sway.config.output = {
|
||||
"DP-1" = {
|
||||
|
|
|
@ -1,13 +1,25 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
@ -76,7 +88,5 @@
|
|||
fsType = "nfs4";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/b134fecf-719f-45af-b317-001e413f06c4"; }];
|
||||
|
||||
swapDevices = [ { device = "/dev/disk/by-uuid/b134fecf-719f-45af-b317-001e413f06c4"; } ];
|
||||
}
|
||||
|
|
|
@ -4,7 +4,8 @@ let
|
|||
#! ${pkgs.runtimeShell}
|
||||
PATH=${pkgs.sway}/bin
|
||||
'';
|
||||
in {
|
||||
in
|
||||
{
|
||||
home-manager.users.artemis.home.packages = [
|
||||
(pkgs.writeScriptBin "work" ''
|
||||
${swayPrelude}
|
||||
|
|
Loading…
Reference in a new issue