modularize config
This commit is contained in:
parent
09c4625fbb
commit
7a4e46e04f
33 changed files with 230 additions and 168 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
# is wrapped in if statement to enable when needed
|
||||||
|
../programs/gaming/default.nix
|
||||||
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
openssl
|
openssl
|
||||||
dbus
|
dbus
|
||||||
|
|
@ -23,6 +28,9 @@
|
||||||
kdePackages.breeze-icons
|
kdePackages.breeze-icons
|
||||||
seahorse
|
seahorse
|
||||||
upower
|
upower
|
||||||
|
(lib.mkIf config.conf.streamdeck.enable (callPackage
|
||||||
|
../override/streamdeck.nix
|
||||||
|
{ }))
|
||||||
];
|
];
|
||||||
|
|
||||||
gtk.iconCache.enable = false;
|
gtk.iconCache.enable = false;
|
||||||
|
|
@ -32,19 +40,9 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
nix.settings.experimental-features = "nix-command flakes";
|
||||||
programs.fish.enable = true;
|
|
||||||
programs.fish.promptInit = ''
|
|
||||||
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
|
|
||||||
'';
|
|
||||||
|
|
||||||
programs.nix-ld.enable = true;
|
|
||||||
programs.nix-ld.libraries = with pkgs; [
|
|
||||||
jdk
|
|
||||||
zlib
|
|
||||||
];
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
programs.dconf.enable = true;
|
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
services.dbus.enable = true;
|
services.dbus.enable = true;
|
||||||
|
|
@ -56,13 +54,17 @@
|
||||||
nssmdns4 = true;
|
nssmdns4 = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
# services.xserver.desktopManager.gnome.extraGSettingsOverrides = ''
|
|
||||||
# [org.gnome.desktop.interface]
|
|
||||||
# gtk-theme='adw-gtk3'
|
|
||||||
# cursor-theme='Bibata-Modern-Classsic'
|
|
||||||
# cursor-size=24
|
|
||||||
# '';
|
|
||||||
|
|
||||||
|
programs.fish.enable = true;
|
||||||
|
programs.fish.promptInit = ''
|
||||||
|
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
|
||||||
|
'';
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
|
programs.nix-ld.libraries = with pkgs; [
|
||||||
|
jdk
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
programs.dconf.enable = true;
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
package = pkgs.direnv;
|
package = pkgs.direnv;
|
||||||
silent = false;
|
silent = false;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
gnome.gnome-keyring.enable = true;
|
gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
gvfs.enable = true;
|
gvfs.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
{ pkgs, config, username, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
username = config.conf.username;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
@ -54,6 +57,14 @@
|
||||||
username
|
username
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.kernelPackages = config.conf.kernel;
|
||||||
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
boot.kernelParams = [
|
||||||
|
"resume=\"PARTLABEL=SWAP\""
|
||||||
|
] ++ config.conf.boot_params;
|
||||||
|
|
||||||
|
networking.hostName = config.conf.hostname;
|
||||||
|
|
||||||
# allows user change later on
|
# allows user change later on
|
||||||
users.mutableUsers = true;
|
users.mutableUsers = true;
|
||||||
users.users.${username} = {
|
users.users.${username} = {
|
||||||
|
|
@ -70,7 +81,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "unstable";
|
system.stateVersion = "unstable";
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{
|
{
|
||||||
|
|
@ -103,8 +113,4 @@
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[{ device = "/dev/disk/by-label/SWAP"; }];
|
[{ device = "/dev/disk/by-label/SWAP"; }];
|
||||||
|
|
||||||
boot.kernelParams = [
|
|
||||||
"resume=\"PARTLABEL=SWAP\""
|
|
||||||
] ++ config.programs.boot.boot_params;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{ pkgs
|
{ pkgs
|
||||||
, username
|
, config
|
||||||
, ...
|
, ...
|
||||||
}: {
|
}: {
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
GOPATH = "$HOME/.go";
|
GOPATH = "$HOME/.go";
|
||||||
FLAKE = "home/${username}/gits/dotFiles/nix";
|
FLAKE = "home/${config.conf.username}/gits/dotFiles/nix";
|
||||||
# don't ask... marksman somehow requires this
|
# don't ask... marksman somehow requires this
|
||||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = 1;
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = 1;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{ lib
|
{ lib
|
||||||
, config
|
, config
|
||||||
, pkgs
|
, pkgs
|
||||||
, username
|
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
username = config.conf.username;
|
||||||
session = {
|
session = {
|
||||||
command = "${lib.getExe pkgs.hyprland} --config /etc/greetd/hyprgreet.conf";
|
command = "${lib.getExe pkgs.hyprland} --config /etc/greetd/hyprgreet.conf";
|
||||||
user = username;
|
user = username;
|
||||||
|
|
@ -38,7 +38,7 @@ in
|
||||||
environment.etc."greetd/hyprgreet.conf".text = ''
|
environment.etc."greetd/hyprgreet.conf".text = ''
|
||||||
exec-once=gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
|
exec-once=gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
|
||||||
|
|
||||||
monitor=${config.programs.ironbar.monitor},3440x1440@180,0x0,${config.programs.ironbar.scale}
|
monitor=${config.conf.monitor},3440x1440@180,0x0,${config.conf.scale}
|
||||||
monitor=_,disable
|
monitor=_,disable
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
dashie = pkgs.writeText "dashie" ''
|
layout = pkgs.writeText "dashie" ''
|
||||||
xkb_symbols "dashie"
|
xkb_symbols "dashie"
|
||||||
{
|
{
|
||||||
include "us(basic)"
|
include "us(basic)"
|
||||||
|
|
@ -16,7 +16,7 @@ in
|
||||||
services.xserver.xkb.extraLayouts.dashie = {
|
services.xserver.xkb.extraLayouts.dashie = {
|
||||||
description = "US layout with 'umlaut'";
|
description = "US layout with 'umlaut'";
|
||||||
languages = [ "eng" ];
|
languages = [ "eng" ];
|
||||||
symbolsFile = "${dashie}";
|
symbolsFile = "${layout}";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,22 +55,20 @@
|
||||||
./base/default.nix
|
./base/default.nix
|
||||||
./programs
|
./programs
|
||||||
];
|
];
|
||||||
username = "dashie";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations."marmo" = inputs.nixpkgs.lib.nixosSystem {
|
nixosConfigurations."marmo" = inputs.nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs pkgs username;
|
inherit inputs pkgs;
|
||||||
mod = ./hardware/marmo/base_config.nix;
|
mod = ./hardware/marmo/base_config.nix;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./hardware/marmo/default.nix
|
./hardware/marmo/default.nix
|
||||||
./programs/gaming/default.nix
|
|
||||||
] ++ base_imports;
|
] ++ base_imports;
|
||||||
};
|
};
|
||||||
nixosConfigurations."overheating" = inputs.nixpkgs.lib.nixosSystem {
|
nixosConfigurations."overheating" = inputs.nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs pkgs username;
|
inherit inputs pkgs;
|
||||||
mod = ./hardware/overheating/base_config.nix;
|
mod = ./hardware/overheating/base_config.nix;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
|
@ -79,13 +77,11 @@
|
||||||
};
|
};
|
||||||
nixosConfigurations."spaceship" = inputs.nixpkgs.lib.nixosSystem {
|
nixosConfigurations."spaceship" = inputs.nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs pkgs username;
|
inherit inputs pkgs;
|
||||||
mod = ./hardware/spaceship/base_config.nix;
|
mod = ./hardware/spaceship/base_config.nix;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./hardware/spaceship/default.nix
|
./hardware/spaceship/default.nix
|
||||||
./hardware/streamdeck.nix
|
|
||||||
./programs/gaming/default.nix
|
|
||||||
] ++ base_imports;
|
] ++ base_imports;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,5 @@
|
||||||
# all others
|
# all others
|
||||||
",highrr,auto,1"
|
",highrr,auto,1"
|
||||||
];
|
];
|
||||||
programs.ironbar.monitor = "DP-1";
|
conf.monitor = "DP-1";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,14 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/gamemode.nix
|
../../modules/conf.nix
|
||||||
../../modules/boot_params.nix
|
|
||||||
../../modules/ironbar_config.nix
|
|
||||||
];
|
];
|
||||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
# variables for system
|
||||||
programs.boot.boot_params = [
|
conf = {
|
||||||
"amdgpu.ppfeaturemask=0xffffffff"
|
monitor = "DP-1";
|
||||||
];
|
gaming = {
|
||||||
networking.hostName = "marmo";
|
enable = true;
|
||||||
programs.ironbar.monitor = "DP-1";
|
device = 1;
|
||||||
programs.gamemode = {
|
};
|
||||||
device = 1;
|
hostname = "marmo";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,11 @@
|
||||||
# all others
|
# all others
|
||||||
",highres,auto,1"
|
",highres,auto,1"
|
||||||
];
|
];
|
||||||
programs.ironbar.monitor = "eDP-1";
|
conf = {
|
||||||
programs.ironbar.battery = [
|
monitor = "eDP-1";
|
||||||
{ type = "upower"; class = "memory-usage"; }
|
battery = [
|
||||||
];
|
{ type = "upower"; class = "memory-usage"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
programs.hyprland.extra_autostart = [ "hyprdock --server" ];
|
programs.hyprland.extra_autostart = [ "hyprdock --server" ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/ironbar_config.nix
|
../../modules/conf.nix
|
||||||
../../modules/boot_params.nix
|
|
||||||
./dsdt.nix
|
./dsdt.nix
|
||||||
./firmware.nix
|
./firmware.nix
|
||||||
];
|
];
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
conf = {
|
||||||
networking.hostName = "overheating";
|
monitor = "eDP-1";
|
||||||
programs.ironbar.monitor = "eDP-1";
|
scale = "2.0";
|
||||||
programs.ironbar.scale = "2.0";
|
hostname = "overheating";
|
||||||
programs.boot.boot_params = [ "rtc_cmos.use_acpi_alarm=1" ];
|
boot_params = [ "rtc_cmos.use_acpi_alarm=1" ];
|
||||||
|
};
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
hardware.bluetooth.powerOnBoot = true;
|
hardware.bluetooth.powerOnBoot = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, config, lib, modulesPath, ... }:
|
{ config, lib, modulesPath, ... }:
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
{ username, ... }: {
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
username = config.conf.username;
|
||||||
|
in
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../modules
|
../../modules
|
||||||
];
|
];
|
||||||
|
|
@ -30,7 +34,7 @@
|
||||||
# monitor right
|
# monitor right
|
||||||
"3,monitor:HDMI-A-1, default:true"
|
"3,monitor:HDMI-A-1, default:true"
|
||||||
];
|
];
|
||||||
programs.ironbar.monitor = "DP-1";
|
conf.monitor = "DP-1";
|
||||||
programs.hyprland.hyprpaper = ''
|
programs.hyprland.hyprpaper = ''
|
||||||
#load
|
#load
|
||||||
preload = /home/${username}/Pictures/backgrounds/shinobu_2k.jpg
|
preload = /home/${username}/Pictures/backgrounds/shinobu_2k.jpg
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/gamemode.nix
|
../../modules/conf.nix
|
||||||
../../modules/boot_params.nix
|
|
||||||
../../modules/ironbar_config.nix
|
|
||||||
];
|
];
|
||||||
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
|
||||||
programs.boot.boot_params = [
|
|
||||||
"amdgpu.ppfeaturemask=0xffffffff"
|
|
||||||
];
|
|
||||||
networking.hostName = "spaceship";
|
|
||||||
|
|
||||||
programs.gamemode = {
|
# config variables
|
||||||
device = 0;
|
conf = {
|
||||||
|
monitor = "DP-1";
|
||||||
|
gaming = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
streamdeck.enable = true;
|
||||||
|
hostname = "spaceship";
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.virtualbox.host.enable = true;
|
virtualisation.virtualbox.host.enable = true;
|
||||||
|
|
||||||
# enable hardware acceleration and rocm
|
# enable hardware acceleration and rocm
|
||||||
|
|
@ -28,6 +28,12 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = lib.mkDefault true;
|
enable32Bit = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
networking.firewall = {
|
||||||
programs.ironbar.monitor = "DP-1";
|
allowedTCPPortRanges = [
|
||||||
|
{ from = 1714; to = 1764; } # KDE Connect
|
||||||
|
];
|
||||||
|
allowedUDPPortRanges = [
|
||||||
|
{ from = 1714; to = 1764; } # KDE Connect
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
#programs.streamdeck-ui = {
|
|
||||||
# enable = true;
|
|
||||||
# autoStart = false; # optional
|
|
||||||
#};
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
{ lib, ... }: {
|
|
||||||
options.programs.boot = {
|
|
||||||
boot_params = lib.mkOption {
|
|
||||||
default = [ ];
|
|
||||||
example = [ "resume=something" ];
|
|
||||||
description = ''
|
|
||||||
Boot params
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
106
nix/modules/conf.nix
Normal file
106
nix/modules/conf.nix
Normal file
|
|
@ -0,0 +1,106 @@
|
||||||
|
{ lib, config, pkgs, ... }: {
|
||||||
|
options.conf = {
|
||||||
|
monitor = lib.mkOption {
|
||||||
|
default = "";
|
||||||
|
example = "eDP-1";
|
||||||
|
type = lib.types.str;
|
||||||
|
description = ''
|
||||||
|
main monitor
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
scale = lib.mkOption {
|
||||||
|
default = "1.0";
|
||||||
|
example = "1.0";
|
||||||
|
type = lib.types.str;
|
||||||
|
description = ''
|
||||||
|
Scale for the monitor
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
battery = lib.mkOption {
|
||||||
|
default = [ ];
|
||||||
|
example = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
amdGpu = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
type = lib.types.bool;
|
||||||
|
description = ''
|
||||||
|
Enables drivers, optimizations and kernel parameters for AMD gpus.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
boot_params = lib.mkOption {
|
||||||
|
default = [ ];
|
||||||
|
example = [ "resume=something" ];
|
||||||
|
description = ''
|
||||||
|
Boot params
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
gaming = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
type = lib.types.bool;
|
||||||
|
description = ''
|
||||||
|
Install gaming related programs such as steam, gamemode, and more
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
device = lib.mkOption {
|
||||||
|
default = 0;
|
||||||
|
example = 0;
|
||||||
|
description = ''
|
||||||
|
GPU device number
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
streamdeck = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
type = lib.types.bool;
|
||||||
|
description = ''
|
||||||
|
Install streamdeck configuration program.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
kernel = lib.mkOption {
|
||||||
|
default = pkgs.linuxPackages_latest;
|
||||||
|
example = pkgs.linuxPackages_xanmod_latest;
|
||||||
|
# type = lib.types.package;
|
||||||
|
description = ''
|
||||||
|
kernel to be used
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
hostname = lib.mkOption {
|
||||||
|
default = "nixos";
|
||||||
|
example = "spaceship";
|
||||||
|
type = lib.types.str;
|
||||||
|
description = ''
|
||||||
|
The name of the system
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
username = lib.mkOption {
|
||||||
|
default = "dashie";
|
||||||
|
example = "pingpang";
|
||||||
|
type = lib.types.str;
|
||||||
|
description = ''
|
||||||
|
The username.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
conf.boot_params = lib.mkIf config.conf.amdGpu [
|
||||||
|
"amdgpu.ppfeaturemask=0xffffffff"
|
||||||
|
];
|
||||||
|
|
||||||
|
conf.kernel = lib.mkIf config.conf.gaming.enable pkgs.linuxPackages_xanmod_latest;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./ironbar_config.nix
|
|
||||||
./hyprpaper_config.nix
|
./hyprpaper_config.nix
|
||||||
|
./conf.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
{ lib, ... }: {
|
|
||||||
options.programs.gamemode = {
|
|
||||||
device = lib.mkOption {
|
|
||||||
default = 0;
|
|
||||||
example = 0;
|
|
||||||
description = ''
|
|
||||||
GPU device number
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
{ lib, ... }: {
|
|
||||||
options.programs.ironbar = {
|
|
||||||
monitor = lib.mkOption {
|
|
||||||
default = "";
|
|
||||||
example = "eDP-1";
|
|
||||||
type = lib.types.str;
|
|
||||||
description = ''
|
|
||||||
main monitor
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
scale = lib.mkOption {
|
|
||||||
default = "1.0";
|
|
||||||
example = "1.0";
|
|
||||||
type = lib.types.str;
|
|
||||||
description = ''
|
|
||||||
Scale for the monitor
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
battery = lib.mkOption {
|
|
||||||
default = [ ];
|
|
||||||
example = [ ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -91,8 +91,7 @@
|
||||||
|
|
||||||
#typst
|
#typst
|
||||||
typst
|
typst
|
||||||
typst-lsp
|
tinymist
|
||||||
typstfmt
|
|
||||||
ltex-ls
|
ltex-ls
|
||||||
|
|
||||||
#java
|
#java
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
{ pkgs
|
{ pkgs
|
||||||
, inputs
|
, inputs
|
||||||
, lib
|
, lib
|
||||||
, username
|
, config
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let callPackage = lib.callPackageWith (pkgs);
|
let
|
||||||
|
callPackage = lib.callPackageWith (pkgs);
|
||||||
|
username = config.conf.username;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
manual = {
|
manual = {
|
||||||
|
|
@ -53,9 +55,6 @@ in
|
||||||
flake-checker
|
flake-checker
|
||||||
ffmpeg
|
ffmpeg
|
||||||
system-config-printer
|
system-config-printer
|
||||||
(callPackage
|
|
||||||
../override/streamdeck.nix
|
|
||||||
{ })
|
|
||||||
(callPackage
|
(callPackage
|
||||||
../override/cambalache.nix
|
../override/cambalache.nix
|
||||||
{ })
|
{ })
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, pkgs, mod, username, ... }:
|
{ inputs, pkgs, mod, config, ... }:
|
||||||
let
|
let
|
||||||
base_imports = [
|
base_imports = [
|
||||||
inputs.anyrun.homeManagerModules.default
|
inputs.anyrun.homeManagerModules.default
|
||||||
|
|
@ -14,6 +14,7 @@ let
|
||||||
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
inputs.nix-flatpak.homeManagerModules.nix-flatpak
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
];
|
];
|
||||||
|
username = config.conf.username;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
xdg.portal.config.common.default = "*";
|
xdg.portal.config.common.default = "*";
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,8 @@
|
||||||
{ pkgs
|
{ pkgs
|
||||||
|
, lib
|
||||||
, config
|
, config
|
||||||
, ...
|
, ...
|
||||||
}: {
|
}: lib.mkIf config.conf.gaming.enable {
|
||||||
imports = [
|
|
||||||
# ./anyrun.nix
|
|
||||||
# ./config.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
gamemode
|
gamemode
|
||||||
steam
|
steam
|
||||||
|
|
@ -25,7 +21,7 @@
|
||||||
};
|
};
|
||||||
gpu = {
|
gpu = {
|
||||||
apply_gpu_optimisations = "accept-responsibility";
|
apply_gpu_optimisations = "accept-responsibility";
|
||||||
gpu_device = config.programs.gamemode.device;
|
gpu_device = config.conf.gaming.device;
|
||||||
amd_performance_level = "high";
|
amd_performance_level = "high";
|
||||||
};
|
};
|
||||||
custom = {
|
custom = {
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,11 @@
|
||||||
{ pkgs
|
{ config
|
||||||
, inputs
|
|
||||||
, username
|
|
||||||
, config
|
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland.enable = true;
|
wayland.windowManager.hyprland.enable = true;
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
"source" = "/home/${username}/.config/reset/keyboard.conf";
|
"source" = "/home/${config.conf.username}/.config/reset/keyboard.conf";
|
||||||
|
|
||||||
bindm = [
|
bindm = [
|
||||||
"$mod, mouse:272, movewindow"
|
"$mod, mouse:272, movewindow"
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
input-field = [
|
input-field = [
|
||||||
{
|
{
|
||||||
monitor = "${config.programs.ironbar.monitor}";
|
monitor = "${config.conf.monitor}";
|
||||||
|
|
||||||
placeholder_text = "password or something";
|
placeholder_text = "password or something";
|
||||||
}
|
}
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
label = [
|
label = [
|
||||||
{
|
{
|
||||||
monitor = "${config.programs.ironbar.monitor}";
|
monitor = "${config.conf.monitor}";
|
||||||
text = "$TIME";
|
text = "$TIME";
|
||||||
font_size = 50;
|
font_size = 50;
|
||||||
position = "0, 200";
|
position = "0, 200";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
{ config, username, ... }: {
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
username = config.conf.username;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
programs.ironbar =
|
programs.ironbar =
|
||||||
{
|
{
|
||||||
|
|
@ -141,8 +145,8 @@
|
||||||
#"another_feature"
|
#"another_feature"
|
||||||
];
|
];
|
||||||
config = {
|
config = {
|
||||||
monitors."${config.programs.ironbar.monitor}" = {
|
monitors."${config.conf.monitor}" = {
|
||||||
end = config.programs.ironbar.battery ++ [
|
end = config.conf.battery ++ [
|
||||||
{
|
{
|
||||||
type = "sys_info";
|
type = "sys_info";
|
||||||
format = [
|
format = [
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, username, ... }: {
|
{ pkgs, config, ... }: {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
DisplayBookmarksToolbar = "never";
|
DisplayBookmarksToolbar = "never";
|
||||||
DisplayMenuBar = "default-off";
|
DisplayMenuBar = "default-off";
|
||||||
};
|
};
|
||||||
profiles.${username} = {
|
profiles.${config.conf.username} = {
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
ublock-origin
|
ublock-origin
|
||||||
darkreader
|
darkreader
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ username, ... }: {
|
{ config, ... }: {
|
||||||
xdg.configFile."fish/config.fish" = {
|
xdg.configFile."fish/config.fish" = {
|
||||||
text =
|
text =
|
||||||
''
|
''
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
set EDITOR "neovide --no-fork"
|
set EDITOR "neovide --no-fork"
|
||||||
|
|
||||||
alias rebuild='sudo nixos-rebuild switch --flake /home/${username}/gits/dotFiles/nix/.'
|
alias rebuild='sudo nixos-rebuild switch --flake /home/${config.conf.username}/gits/dotFiles/nix/.'
|
||||||
abbr --add ls 'lsd'
|
abbr --add ls 'lsd'
|
||||||
abbr --add :q 'exit'
|
abbr --add :q 'exit'
|
||||||
abbr --add gh 'git push origin'
|
abbr --add gh 'git push origin'
|
||||||
|
|
|
||||||
|
|
@ -114,9 +114,9 @@ return {
|
||||||
"Sdk:IncludePrereleases=true",
|
"Sdk:IncludePrereleases=true",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
typst_lsp = {
|
tinymist = {
|
||||||
settings = {
|
settings = {
|
||||||
experimentalFormatterMode = "on",
|
formatterMode = "typstyle",
|
||||||
exportPdf = "onSave",
|
exportPdf = "onSave",
|
||||||
},
|
},
|
||||||
mason = false,
|
mason = false,
|
||||||
|
|
@ -225,7 +225,6 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
typst = { "typstfmt" },
|
|
||||||
nix = { "nixpkgs-fmt" },
|
nix = { "nixpkgs-fmt" },
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
sh = { "shfmt" },
|
sh = { "shfmt" },
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ username, ... }: {
|
{ config, ... }: {
|
||||||
xdg.configFile."oxinoti/style.css" = {
|
xdg.configFile."oxinoti/style.css" = {
|
||||||
text = /*css*/
|
text = /*css*/
|
||||||
''
|
''
|
||||||
@import url("/home/${username}/.config/gtk-3.0/gtk.css");
|
@import url("/home/${config.conf.username}/.config/gtk-3.0/gtk.css");
|
||||||
|
|
||||||
#MainWindow {
|
#MainWindow {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{ username, ... }:
|
{ config, ... }:
|
||||||
let
|
let
|
||||||
|
username = config.conf.username;
|
||||||
color = ''
|
color = ''
|
||||||
[ColorScheme]
|
[ColorScheme]
|
||||||
active_colors=#ffc0caf5, #ff1a1b26, #ff373949, #ff2b2c3b, #ff1a1b26, #ff2b2c3b, #ffc0caf5, #ffc0caf5, #ffc0caf5, #ff1a1b26, #ff1a1b26, #19000000, #ff2b2c3b, #ffc0caf5, #ff3584e4, #ff1b6acb, #ff1a1b26, #ff242530, #ff1a1b26, #ffc0caf5, #ffc0caf5
|
active_colors=#ffc0caf5, #ff1a1b26, #ff373949, #ff2b2c3b, #ff1a1b26, #ff2b2c3b, #ffc0caf5, #ffc0caf5, #ffc0caf5, #ff1a1b26, #ff1a1b26, #19000000, #ff2b2c3b, #ffc0caf5, #ff3584e4, #ff1b6acb, #ff1a1b26, #ff242530, #ff1a1b26, #ffc0caf5, #ffc0caf5
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,15 @@ dashie: ENC[AES256_GCM,data:P/+ZEelpLFrcsk8hx7CF999Wlv5OWiybjPVT1ULogCECpBAxYJgl
|
||||||
hub_pub: ENC[AES256_GCM,data:6vIAQWFMIR+HnERg+A4jKu/MW+e7eLQplmdJyBeuBL9tvxH1idT8C6zvMEyIPhelU6+ZYQghAlvuC4MtktI/Te0f40XvdK3Gq/DmfBrLRUgLdSjUvMeGuuKnpRX0mjCaw77YW5ES4ptZ,iv:PC9hELA0234JCk2rx6FJhMlKKaKO8WrIezJ2Q2nv6EE=,tag:R8oPaH3Sbr23oRX++OP/qg==,type:str]
|
hub_pub: ENC[AES256_GCM,data:6vIAQWFMIR+HnERg+A4jKu/MW+e7eLQplmdJyBeuBL9tvxH1idT8C6zvMEyIPhelU6+ZYQghAlvuC4MtktI/Te0f40XvdK3Gq/DmfBrLRUgLdSjUvMeGuuKnpRX0mjCaw77YW5ES4ptZ,iv:PC9hELA0234JCk2rx6FJhMlKKaKO8WrIezJ2Q2nv6EE=,tag:R8oPaH3Sbr23oRX++OP/qg==,type:str]
|
||||||
lab_pub: ENC[AES256_GCM,data:rlHCiqGnoaPiQBaZQRT+bEjfNF7jNO4CGPoCOKJ1o7nv7i2jPy6Bq9OMBHXsMHI9oGfEhyKCDHdpJ65aI07KJC/fMoMoAyiNmalwNOn26jbgj84mfENS3IYbfKxQVXAUCJHE5m1cFsm7,iv:8SLdHLYq2tlfHBjdeDoByEzGuu3TURj4+KJvQfPuaWA=,tag:mmGXlRwQ0UoVIAJE6d1OUQ==,type:str]
|
lab_pub: ENC[AES256_GCM,data:rlHCiqGnoaPiQBaZQRT+bEjfNF7jNO4CGPoCOKJ1o7nv7i2jPy6Bq9OMBHXsMHI9oGfEhyKCDHdpJ65aI07KJC/fMoMoAyiNmalwNOn26jbgj84mfENS3IYbfKxQVXAUCJHE5m1cFsm7,iv:8SLdHLYq2tlfHBjdeDoByEzGuu3TURj4+KJvQfPuaWA=,tag:mmGXlRwQ0UoVIAJE6d1OUQ==,type:str]
|
||||||
dashie_pub: ENC[AES256_GCM,data:k6JIJOKDJcGSW47Z8y0EYxNl/vaPRVbIn35CSA57snEzYnk5GpU+1NfPDniWoAGRkpIwicgN6kpzssRlKOmVudvwMejSLv4VkLRBjrsApVFECwoIBLUNGUSDaMcIwC/BYu4jfjGaozBj,iv:0EZ0rptLdmcuTU1BGOILaaDTrc7aZGJCCxgjUESqi0M=,tag:dlQs/ugBGxnSrNj/bRSJSw==,type:str]
|
dashie_pub: ENC[AES256_GCM,data:k6JIJOKDJcGSW47Z8y0EYxNl/vaPRVbIn35CSA57snEzYnk5GpU+1NfPDniWoAGRkpIwicgN6kpzssRlKOmVudvwMejSLv4VkLRBjrsApVFECwoIBLUNGUSDaMcIwC/BYu4jfjGaozBj,iv:0EZ0rptLdmcuTU1BGOILaaDTrc7aZGJCCxgjUESqi0M=,tag:dlQs/ugBGxnSrNj/bRSJSw==,type:str]
|
||||||
|
server_pub: ENC[AES256_GCM,data:87nTYzA8CykOPjfZS2As8+JB/ysJvHXFYbPIBA8Nus8Y3nI3Tl2F/f7mUVFBT+4mmOFTTwxghEnkpgTg/vzUm6W4wb19rIcv11eM7HYaGl5oI44a44rBJn2+PKlfIgXVgaY=,iv:O7I7kkZ44McXzCt3wH1cM3MJCShxu2O+0U0+Y6rwePo=,tag:q5D5AGMmFyiNhQNR8dRB+g==,type:str]
|
||||||
sops:
|
sops:
|
||||||
kms: []
|
kms: []
|
||||||
gcp_kms: []
|
gcp_kms: []
|
||||||
azure_kv: []
|
azure_kv: []
|
||||||
hc_vault: []
|
hc_vault: []
|
||||||
age: []
|
age: []
|
||||||
lastmodified: "2024-05-14T18:34:33Z"
|
lastmodified: "2024-07-08T18:00:49Z"
|
||||||
mac: ENC[AES256_GCM,data:ZOmH7VOtapecA3wr0p4M8SfC5zKybsXZdI67rE8SHFyeHDq+6In0ekPs4uTun1lBT4ly4ijjK2XWsRdrkTI76P4yKD5o850Mi7RDHTZzzP3AmlIrMgFbKTZkxuY1wnLJvcuHnbzq4e7s5ZJYPRx/lDd5dnYB+Xa5yyv4zCXXwqg=,iv:cqSPKZp/SNYnKU1QT2eOmKPe0oFTgVI6r8UMTYModnk=,tag:bHUhfnlHq8UGG8Z50cCQcw==,type:str]
|
mac: ENC[AES256_GCM,data:66P0uEUhQit+EjBEhAoQP3yVAt988eYwwxnOPGahPfKDw5ud+b8atc9mT6vGK3TfQFoZfjwhRxEOmc/Wx/PA+L01S7gAFctKrnbADAfRn7HJmtX3pXunhDxI6hGyJW+CrFNiLhViMJSXHljhj/QfDmxkJ/6TSSi8uMr2iNlLA3I=,iv:AJ4RB0CV0QAumZ6o36loeR51GUxQKnEsUklIGJnn5qI=,tag:or1MamtafGlwBRr/JsL9Eg==,type:str]
|
||||||
pgp:
|
pgp:
|
||||||
- created_at: "2024-05-14T14:35:02Z"
|
- created_at: "2024-05-14T14:35:02Z"
|
||||||
enc: |-
|
enc: |-
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue