Compare commits
3
Commits
3939a7c0cf
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
149877f31e | ||
|
|
b0a83e2ad5
|
||
|
|
3831cc1540
|
@@ -1,13 +1,14 @@
|
||||
{
|
||||
config.flake.factory.mount-cifs =
|
||||
{ host
|
||||
, resource
|
||||
, destination
|
||||
, credentials_path
|
||||
, UID
|
||||
, GID
|
||||
,
|
||||
}: { pkgs, ... }: {
|
||||
{
|
||||
host,
|
||||
resource,
|
||||
destination,
|
||||
credentials_path,
|
||||
UID,
|
||||
GID,
|
||||
}:
|
||||
{ pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
cifs-utils
|
||||
];
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
{ self, ... }: {
|
||||
config.flake.factory.user = username: isAdmin: {
|
||||
nixos."${username}" =
|
||||
{ lib
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
users.users."${username}" = {
|
||||
isNormalUser = true;
|
||||
home = "/home/${username}";
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
perSystem = { pkgs, ... }: {
|
||||
formatter = pkgs.nixfmt-tree;
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
{ inputs, ... }: {
|
||||
flake.modules.nixos.keith = {
|
||||
imports = with inputs.self.modules.nixos;
|
||||
with inputs.self.factory; [
|
||||
imports =
|
||||
with inputs.self.modules.nixos;
|
||||
with inputs.self.factory;
|
||||
[
|
||||
system-desktop
|
||||
(autologin "weckyy702")
|
||||
(grub-boot "/dev/nvme0n1")
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{ inputs, ... }: {
|
||||
flake.modules.nixos.keith-devtools = {
|
||||
imports = with inputs.self.modules.nixos;
|
||||
with inputs.self.factory; [
|
||||
imports =
|
||||
with inputs.self.modules.nixos;
|
||||
with inputs.self.factory;
|
||||
[
|
||||
development-tools
|
||||
rust-dev
|
||||
];
|
||||
|
||||
@@ -5,7 +5,14 @@
|
||||
amd-gpu
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{ self
|
||||
, inputs
|
||||
, ...
|
||||
}: {
|
||||
{
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
flake.modules.nixos.keith = { config, ... }: {
|
||||
age.secrets.upsmon.file = "${inputs.secrets}/upsmon.age";
|
||||
|
||||
|
||||
@@ -4,11 +4,14 @@
|
||||
weckyy702
|
||||
steam
|
||||
mullvad
|
||||
naps2
|
||||
];
|
||||
|
||||
home-manager.users.weckyy702 = { config, ... }: {
|
||||
imports = with inputs.self.modules.homeManager;
|
||||
with inputs.self.factory; [
|
||||
imports =
|
||||
with inputs.self.modules.homeManager;
|
||||
with inputs.self.factory;
|
||||
[
|
||||
(wpaperd {
|
||||
default = {
|
||||
path = "${inputs.assets}/horizontal_16x9.png";
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{ inputs, ... }: {
|
||||
flake.modules.nixos.tux-devtools = {
|
||||
imports = with inputs.self.modules.nixos;
|
||||
with inputs.self.factory; [
|
||||
imports =
|
||||
with inputs.self.modules.nixos;
|
||||
with inputs.self.factory;
|
||||
[
|
||||
development-tools
|
||||
rust-dev
|
||||
|
||||
|
||||
@@ -8,7 +8,10 @@
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/15FA-55CF";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
|
||||
@@ -4,9 +4,17 @@
|
||||
intel-gpu
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.luks.devices."luks-9d836ef1-a7f9-430f-8fb8-f202f6336e5a".device = "/dev/disk/by-uuid/9d836ef1-a7f9-430f-8fb8-f202f6336e5a";
|
||||
boot.initrd.luks.devices."luks-46e78828-ab23-48b8-8e2a-de7a21adbe24".device = "/dev/disk/by-uuid/46e78828-ab23-48b8-8e2a-de7a21adbe24";
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"sdhci_pci"
|
||||
];
|
||||
boot.initrd.luks.devices."luks-9d836ef1-a7f9-430f-8fb8-f202f6336e5a".device =
|
||||
"/dev/disk/by-uuid/9d836ef1-a7f9-430f-8fb8-f202f6336e5a";
|
||||
boot.initrd.luks.devices."luks-46e78828-ab23-48b8-8e2a-de7a21adbe24".device =
|
||||
"/dev/disk/by-uuid/46e78828-ab23-48b8-8e2a-de7a21adbe24";
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{ inputs, ... }: {
|
||||
flake.modules.nixos.tux = {
|
||||
imports = with inputs.self.modules.nixos;
|
||||
with inputs.self.factory; [
|
||||
imports =
|
||||
with inputs.self.modules.nixos;
|
||||
with inputs.self.factory;
|
||||
[
|
||||
system-desktop
|
||||
systemd-boot
|
||||
bluetooth
|
||||
|
||||
@@ -7,8 +7,10 @@
|
||||
];
|
||||
|
||||
home-manager.users.weckyy702 = {
|
||||
imports = with inputs.self.modules.homeManager;
|
||||
with inputs.self.factory; [
|
||||
imports =
|
||||
with inputs.self.modules.homeManager;
|
||||
with inputs.self.factory;
|
||||
[
|
||||
borgmatic
|
||||
obsidian
|
||||
vesktop
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{ inputs
|
||||
, lib
|
||||
, ...
|
||||
}: {
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# Helper functions for creating system / home-manager configurations
|
||||
|
||||
options.flake.lib = lib.mkOption {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{ inputs
|
||||
, config
|
||||
, ...
|
||||
}: {
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# Add home-manager input
|
||||
flake-file.inputs = {
|
||||
home-manager.url = "github:nix-community/home-manager/release-26.05";
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
{
|
||||
flake.modules.homeManager.ashell =
|
||||
{ config
|
||||
, lib
|
||||
, ...
|
||||
}: {
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.ashell = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
@@ -12,17 +14,33 @@
|
||||
modules = {
|
||||
left = [ "Workspaces" ];
|
||||
center = [ "Clock" ];
|
||||
right = [ "Tray" [ "SystemInfo" "Settings" ] ];
|
||||
right = [
|
||||
"Tray"
|
||||
[
|
||||
"SystemInfo"
|
||||
"Settings"
|
||||
]
|
||||
];
|
||||
};
|
||||
|
||||
system_info.indicators = [ "Cpu" "Memory" "Temperature" "DownloadSpeed" "UploadSpeed" ];
|
||||
system_info.indicators = [
|
||||
"Cpu"
|
||||
"Memory"
|
||||
"Temperature"
|
||||
"DownloadSpeed"
|
||||
"UploadSpeed"
|
||||
];
|
||||
|
||||
settings.indicators = [ "Battery" ];
|
||||
|
||||
appearance = lib.mkIf config.catppuccin.enable {
|
||||
success_color = "#a6e3a1";
|
||||
text_color = "#cdd6f4";
|
||||
workspace_colors = [ "#fab387" "#b4befe" "#cba6f7" ];
|
||||
workspace_colors = [
|
||||
"#fab387"
|
||||
"#b4befe"
|
||||
"#cba6f7"
|
||||
];
|
||||
|
||||
primary_color = {
|
||||
base = "#fab387";
|
||||
|
||||
@@ -7,9 +7,10 @@
|
||||
};
|
||||
|
||||
flake.modules.homeManager.browser =
|
||||
{ pkgs
|
||||
, lib
|
||||
, ...
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
mkExtension = shortId: guid: {
|
||||
@@ -19,8 +20,7 @@
|
||||
installation_mode = "normal_installed";
|
||||
};
|
||||
};
|
||||
zen-pkg =
|
||||
inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.zen-browser-unwrapped;
|
||||
zen-pkg = inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.zen-browser-unwrapped;
|
||||
|
||||
prefs = {
|
||||
"zen.tabs.vertical.right-side" = true;
|
||||
@@ -55,15 +55,11 @@
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
(
|
||||
pkgs.wrapFirefox zen-pkg
|
||||
{
|
||||
(pkgs.wrapFirefox zen-pkg {
|
||||
extraPrefs = lib.concatLines (
|
||||
lib.mapAttrsToList
|
||||
(
|
||||
name: value: ''lockPref(${lib.strings.toJSON name}, ${lib.strings.toJSON value});''
|
||||
)
|
||||
prefs
|
||||
lib.mapAttrsToList (
|
||||
name: value: "lockPref(${lib.strings.toJSON name}, ${lib.strings.toJSON value});"
|
||||
) prefs
|
||||
);
|
||||
|
||||
extraPolicies = {
|
||||
@@ -82,8 +78,7 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,10 +4,7 @@
|
||||
enable = true;
|
||||
autoPrune.enable = true;
|
||||
};
|
||||
users.users =
|
||||
lib.genAttrs
|
||||
users
|
||||
(_: {
|
||||
users.users = lib.genAttrs users (_: {
|
||||
extraGroups = [ "docker" ];
|
||||
});
|
||||
};
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.homeManager.randomized-aghpb-wallpaper = { pkgs, ... }:
|
||||
flake.modules.homeManager.randomized-aghpb-wallpaper =
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
combined_wallpapers = pkgs.symlinkJoin {
|
||||
name = "joined-wallpapers";
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
{ self, ... }: {
|
||||
flake.modules.nixos.naps2 = { pkgs, ... }: {
|
||||
imports = with self.modules.nixos; [
|
||||
sane
|
||||
];
|
||||
environment.systemPackages = with pkgs; [
|
||||
naps2
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
basedpyright.enable = true;
|
||||
emmet_ls.enable = true;
|
||||
tinymist.enable = true;
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
@@ -36,4 +37,7 @@
|
||||
|
||||
plugins.lspconfig.enable = true;
|
||||
plugins.clangd-extensions.enable = true;
|
||||
plugins.typst-vim = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{ inputs, ... }: {
|
||||
flake.modules.homeManager.backlight = { pkgs, ... }:
|
||||
flake.modules.homeManager.backlight =
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
||||
in
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
{
|
||||
flake.modules.homeManager.borgmatic =
|
||||
{ config
|
||||
, osConfig
|
||||
, pkgs
|
||||
, lib
|
||||
, ...
|
||||
{
|
||||
config,
|
||||
osConfig,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
hostname = osConfig.networking.hostName;
|
||||
|
||||
@@ -1,22 +1,30 @@
|
||||
{ inputs
|
||||
, self
|
||||
, lib
|
||||
, ...
|
||||
}: {
|
||||
{
|
||||
inputs,
|
||||
self,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
flake.homeConfigurations = inputs.self.lib.mkHomeManager "x86_64-linux" "weckyy702";
|
||||
|
||||
flake.modules = lib.mkMerge [
|
||||
(self.factory.user "weckyy702" true)
|
||||
{
|
||||
nixos.weckyy702 = {
|
||||
imports = with self.modules.nixos;
|
||||
with self.factory; [
|
||||
imports =
|
||||
with self.modules.nixos;
|
||||
with self.factory;
|
||||
[
|
||||
kanata
|
||||
catppuccin
|
||||
(zsa-moonlander "weckyy702")
|
||||
];
|
||||
|
||||
users.users.weckyy702.extraGroups = [ "networkmanager" "dialout" "scanner" ];
|
||||
users.users.weckyy702.extraGroups = [
|
||||
"networkmanager"
|
||||
"dialout"
|
||||
"scanner"
|
||||
];
|
||||
};
|
||||
|
||||
homeManager.weckyy702 = { pkgs, ... }: {
|
||||
|
||||
+4
-1
@@ -4,7 +4,10 @@ let
|
||||
|
||||
keith = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrauXP79zUm2FlVj3HRm+C8ufYAABiIoe68OCGbIm+2";
|
||||
tux = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFB7bh6ioZrTSR0AkKvJ1qxVWX0kwcM8yeHghTYFGpqZ";
|
||||
systems = [ keith tux ];
|
||||
systems = [
|
||||
keith
|
||||
tux
|
||||
];
|
||||
in
|
||||
{
|
||||
"nas-creds.age" = {
|
||||
|
||||
Reference in New Issue
Block a user