chore: format nix files treewide
This commit is contained in:
parent
e1652efa53
commit
90d10606bc
30 changed files with 387 additions and 319 deletions
|
@ -16,7 +16,8 @@
|
||||||
nvf.inputs.nixpkgs.follows = "nixpkgs";
|
nvf.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs:
|
outputs =
|
||||||
|
inputs:
|
||||||
inputs.snowfall-lib.mkFlake {
|
inputs.snowfall-lib.mkFlake {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
@ -31,5 +32,8 @@ impermanence.homeManagerModules.impermanence
|
||||||
nix-index-database.hmModules.nix-index
|
nix-index-database.hmModules.nix-index
|
||||||
nvf.homeManagerModules.default
|
nvf.homeManagerModules.default
|
||||||
];
|
];
|
||||||
|
outputs-builder = channels: {
|
||||||
|
formatter = channels.nixpkgs.nixfmt-rfc-style;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, pkgs, osConfig, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
osConfig,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
cli.shell = "zsh";
|
cli.shell = "zsh";
|
||||||
cli.editor = "nvf";
|
cli.editor = "nvf";
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{config, lib, osConfig, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
osConfig,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
options.cli = {
|
options.cli = {
|
||||||
shell = lib.pantheon.mkStrOption;
|
shell = lib.pantheon.mkStrOption;
|
||||||
|
@ -14,7 +19,9 @@
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
{
|
{
|
||||||
programs.zoxide.enable = true;
|
programs.zoxide.enable = true;
|
||||||
home.persistence."/persist/home/${config.snowfallorg.user.name}".directories = [ "./local/share/zoxide" ];
|
home.persistence."/persist/home/${config.snowfallorg.user.name}".directories = [
|
||||||
|
"./local/share/zoxide"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
programs.nix-index.enable = true;
|
programs.nix-index.enable = true;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
config =
|
config = lib.mkIf (config.cli.file-browser == "yazi") {
|
||||||
lib.mkIf (config.cli.file-browser == "yazi")
|
|
||||||
{
|
|
||||||
home.sessionVariables.FILE_BROWSER = "yazi";
|
home.sessionVariables.FILE_BROWSER = "yazi";
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, osConfig, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
osConfig,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
options.desktop = {
|
options.desktop = {
|
||||||
windowManager = lib.pantheon.mkStrOption;
|
windowManager = lib.pantheon.mkStrOption;
|
||||||
|
@ -6,10 +11,8 @@
|
||||||
terminal = lib.pantheon.mkStrOption;
|
terminal = lib.pantheon.mkStrOption;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
assertions =
|
assertions = [
|
||||||
[
|
|
||||||
{
|
{
|
||||||
assertion = (osConfig.desktop.windowManager == config.desktop.windowManager);
|
assertion = (osConfig.desktop.windowManager == config.desktop.windowManager);
|
||||||
message = "You have set your home window manager to one that is not installed on this system.";
|
message = "You have set your home window manager to one that is not installed on this system.";
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
(lib.mkIf (config.desktop.terminal == "kitty") {
|
(lib.mkIf (config.desktop.terminal == "kitty") {
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, osConfig, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
osConfig,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
mainMonitor = osConfig.desktop.mainMonitor;
|
mainMonitor = osConfig.desktop.mainMonitor;
|
||||||
in
|
in
|
||||||
|
@ -7,7 +12,8 @@ in
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf (config.desktop.windowManager == "hyprland") (lib.mkMerge [
|
config = lib.mkIf (config.desktop.windowManager == "hyprland") (
|
||||||
|
lib.mkMerge [
|
||||||
{
|
{
|
||||||
xdg.configFile."uwsm/env".text = # sh
|
xdg.configFile."uwsm/env".text = # sh
|
||||||
''
|
''
|
||||||
|
@ -50,5 +56,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
]);
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{config, lib, pkgs, ...}:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,8 @@ let
|
||||||
cfg = config.hardware.drives.btrfs;
|
cfg = config.hardware.drives.btrfs;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf (cfg.enable) (lib.mkMerge [
|
config = lib.mkIf (cfg.enable) (
|
||||||
|
lib.mkMerge [
|
||||||
{
|
{
|
||||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||||
disko.devices.disk.main = {
|
disko.devices.disk.main = {
|
||||||
|
@ -44,9 +45,15 @@ in
|
||||||
lvs.root.content.subvolumes = {
|
lvs.root.content.subvolumes = {
|
||||||
"/root".mountpoint = "/";
|
"/root".mountpoint = "/";
|
||||||
"/persist".mountpoint = "/persist";
|
"/persist".mountpoint = "/persist";
|
||||||
"/persist".mountOptions = ["subvol=persist" "noatime"];
|
"/persist".mountOptions = [
|
||||||
|
"subvol=persist"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
"/nix".mountpoint = "/nix";
|
"/nix".mountpoint = "/nix";
|
||||||
"/nix".mountOptions = ["subvol=nix" "noatime"];
|
"/nix".mountOptions = [
|
||||||
|
"subvol=nix"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -77,5 +84,6 @@ in
|
||||||
'';
|
'';
|
||||||
programs.fuse.userAllowOther = true;
|
programs.fuse.userAllowOther = true;
|
||||||
})
|
})
|
||||||
]);
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,12 +9,14 @@
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
PrintMotd = true;};
|
PrintMotd = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
authKeyFile = config.sops.secrets."keys/tailscale".path;};
|
authKeyFile = config.sops.secrets."keys/tailscale".path;
|
||||||
|
};
|
||||||
environment.persistence."/persist".files = [ "/var/lib/tailscale/tailscaled.state" ];
|
environment.persistence."/persist".files = [ "/var/lib/tailscale/tailscaled.state" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
{ lib, config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
config = lib.mkIf (config.hardware.gpu == "nvidia") (lib.mkMerge [
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
config = lib.mkIf (config.hardware.gpu == "nvidia") (
|
||||||
|
lib.mkMerge [
|
||||||
{
|
{
|
||||||
#TODO: Setup CUDA
|
#TODO: Setup CUDA
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
|
@ -17,5 +23,6 @@
|
||||||
NVD_BACKEND = "direct";
|
NVD_BACKEND = "direct";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
]);
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,14 @@
|
||||||
{
|
{
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
{
|
{
|
||||||
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.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
}
|
}
|
||||||
(lib.mkIf (config.system.bootloader == "systemd-boot") {
|
(lib.mkIf (config.system.bootloader == "systemd-boot") {
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
system.hostname = "nemesis";
|
system.hostname = "nemesis";
|
||||||
system.mainUser.name = "rafiq";
|
system.mainUser.name = "rafiq";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue