uuh
This commit is contained in:
parent
36d91dd327
commit
c6cc49c010
|
@ -17,12 +17,13 @@
|
||||||
outputs = {
|
outputs = {
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
stylix,
|
stylix,
|
||||||
|
home-manager,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
systemConfig = {modules}:
|
systemConfig = {modules}:
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs;};
|
specialArgs = {inherit inputs;};
|
||||||
modules = modules ++ [stylix.nixosModules.stylix];
|
modules = modules ++ [stylix.nixosModules.stylix home-manager.nixosModules.default];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
{inputs, ...}: {
|
{...}: {
|
||||||
networking.hostName = "desktop";
|
networking.hostName = "desktop";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
services.hardware.openrgb.enable = true;
|
services.hardware.openrgb.enable = true;
|
||||||
|
|
||||||
|
games.enable = true;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../../modules
|
../../modules
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./unfree.nix
|
|
||||||
inputs.home-manager.nixosModules.default
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
||||||
builtins.elem (lib.getName pkg) [
|
|
||||||
"steam-original"
|
|
||||||
"steam"
|
|
||||||
"steam-run"
|
|
||||||
];
|
|
||||||
programs.steam.enable = true;
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
prismlauncher
|
|
||||||
dolphin-emu
|
|
||||||
zulu17
|
|
||||||
mangohud
|
|
||||||
lutris
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,15 +1,14 @@
|
||||||
{inputs, ...}: {
|
{...}: {
|
||||||
networking.hostName = "laptop";
|
networking.hostName = "laptop";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
hypridle.enable = true;
|
hypridle.enable = true;
|
||||||
|
led.enable = true;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../../modules
|
../../modules
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./led.nix
|
|
||||||
inputs.home-manager.nixosModules.default
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
{...}: {
|
|
||||||
systemd.services.micmute = {
|
|
||||||
description = "Set microphone mute and normal mute LEDs to off";
|
|
||||||
wantedBy = ["multi-user.target"];
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = "/bin/sh -c 'echo 0 | tee /sys/class/leds/platform::micmute/brightness > /dev/null; echo 0 | tee /sys/class/leds/platform::mute/brightness > /dev/null'";
|
|
||||||
Type = "oneshot";
|
|
||||||
User = "root";
|
|
||||||
Group = "root";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -12,5 +12,6 @@
|
||||||
./tools
|
./tools
|
||||||
./code
|
./code
|
||||||
./nemo
|
./nemo
|
||||||
|
./games
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "invidious";
|
name = "invidious";
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/";
|
url = "https://invidious.nerdvpn.de/";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
26
modules/apps/games/default.nix
Normal file
26
modules/apps/games/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options = {
|
||||||
|
games.enable = lib.mkEnableOption "";
|
||||||
|
};
|
||||||
|
config = lib.mkIf config.games.enable {
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [
|
||||||
|
"steam-original"
|
||||||
|
"steam"
|
||||||
|
"steam-run"
|
||||||
|
];
|
||||||
|
programs.steam.enable = true;
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
prismlauncher
|
||||||
|
dolphin-emu
|
||||||
|
zulu17
|
||||||
|
mangohud
|
||||||
|
lutris
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,118 +4,118 @@
|
||||||
browser = "firefox";
|
browser = "firefox";
|
||||||
urls = [
|
urls = [
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCOSqzSTg4QZXdi7jvV-9rUg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCOSqzSTg4QZXdi7jvV-9rUg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCg6gPGh8HU2U01vaFCAsvmQ";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCg6gPGh8HU2U01vaFCAsvmQ";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCYAg4bYdyqENxEyHUX7t1FA";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCYAg4bYdyqENxEyHUX7t1FA";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCVls1GmFKf6WlTraIb_IaJg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCVls1GmFKf6WlTraIb_IaJg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UC5KDiSAFxrDWhmysBcNqtMA";
|
url = "https://invidious.nerdvpn.de/feed/channel/UC5KDiSAFxrDWhmysBcNqtMA";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCcBhwZNKqmPaw3Zk7mh6eBg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCcBhwZNKqmPaw3Zk7mh6eBg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCwnqDLYzLGPbghL9uIOwMnQ";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCwnqDLYzLGPbghL9uIOwMnQ";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCRSxdcWjoye7ohD_ibxzYhg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCRSxdcWjoye7ohD_ibxzYhg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UChIs72whgZI9w6d6FhwGGHA";
|
url = "https://invidious.nerdvpn.de/feed/channel/UChIs72whgZI9w6d6FhwGGHA";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCxdZ7XCQVMRMipj3gGemQfw";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCxdZ7XCQVMRMipj3gGemQfw";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCE_K_gW6ReBi4H3Gp0gi-hg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCE_K_gW6ReBi4H3Gp0gi-hg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCWRHrWUsjdF86dt7NKK2Ixw";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCWRHrWUsjdF86dt7NKK2Ixw";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCfeNmPbGRF6dkPt04HIl25A";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCfeNmPbGRF6dkPt04HIl25A";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCFzUEe9XUlkDLp6AmtNzmOA";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCFzUEe9XUlkDLp6AmtNzmOA";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCxBfQGaMuiMyw1dgW-tpZbg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCxBfQGaMuiMyw1dgW-tpZbg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCpes6DXY4XCSA8s9Q1G9ocg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCpes6DXY4XCSA8s9Q1G9ocg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCR42P1Uub9py2H5RkdcTnWA";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCR42P1Uub9py2H5RkdcTnWA";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCtwjD3551TskyUxnfaUw7Rg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCtwjD3551TskyUxnfaUw7Rg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCZpKTYOk5WAdCyMal3J1KHg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCZpKTYOk5WAdCyMal3J1KHg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCl2mFZoRqjw_ELax4Yisf6w";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCl2mFZoRqjw_ELax4Yisf6w";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UC2eYFnH61tmytImy1mTYvhA";
|
url = "https://invidious.nerdvpn.de/feed/channel/UC2eYFnH61tmytImy1mTYvhA";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UC7YOGHUfC1Tb6E4pudI9STA";
|
url = "https://invidious.nerdvpn.de/feed/channel/UC7YOGHUfC1Tb6E4pudI9STA";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UC0sUzmZ0CHvVCVrpRfGKZfw";
|
url = "https://invidious.nerdvpn.de/feed/channel/UC0sUzmZ0CHvVCVrpRfGKZfw";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCFFfGA991VRR4U8FNNs72Qg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCFFfGA991VRR4U8FNNs72Qg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCIS-e4W5wK2xG6NbI5Tdm_g";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCIS-e4W5wK2xG6NbI5Tdm_g";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCKmEAsezQ0kUQ6EC-BtBNbg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCKmEAsezQ0kUQ6EC-BtBNbg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCgj6MvuVmp0JVanAZkFQM5A";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCgj6MvuVmp0JVanAZkFQM5A";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCXQZRyhGN-1F8zwD0a8QuWA";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCXQZRyhGN-1F8zwD0a8QuWA";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCohllq0Pk5lQuuNANabHKcg";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCohllq0Pk5lQuuNANabHKcg";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCUKU3fl8z2rcK7GBdocd7Ww";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCUKU3fl8z2rcK7GBdocd7Ww";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCO57urWt8_T63SPFCA_QmNw";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCO57urWt8_T63SPFCA_QmNw";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCtMVHI3AJD4Qk4hcbZnI9ZQ";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCtMVHI3AJD4Qk4hcbZnI9ZQ";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UC8ENHE5xdFSwx71u3fDH5Xw";
|
url = "https://invidious.nerdvpn.de/feed/channel/UC8ENHE5xdFSwx71u3fDH5Xw";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCMXLdjrQi4JzY0NNvCdUEUQ";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCMXLdjrQi4JzY0NNvCdUEUQ";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UCEKtvLc3EIS0T7shmgPbVrw";
|
url = "https://invidious.nerdvpn.de/feed/channel/UCEKtvLc3EIS0T7shmgPbVrw";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UC_zBdZ0_H_jn41FDRG7q4Tw";
|
url = "https://invidious.nerdvpn.de/feed/channel/UC_zBdZ0_H_jn41FDRG7q4Tw";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UChuDUAo3Hfr_0dn54GpwdUQ";
|
url = "https://invidious.nerdvpn.de/feed/channel/UChuDUAo3Hfr_0dn54GpwdUQ";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
url = "https://blueberry.invidious.reallyaweso.me/feed/channel/UClonyx8pReBvkjropmrS6jQ";
|
url = "https://invidious.nerdvpn.de/feed/channel/UClonyx8pReBvkjropmrS6jQ";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./bluetooth
|
./bluetooth
|
||||||
./sound
|
./sound
|
||||||
|
./led
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
21
modules/hardware/led/default.nix
Normal file
21
modules/hardware/led/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options = {
|
||||||
|
led.enable = lib.mkEnableOption "";
|
||||||
|
};
|
||||||
|
config = lib.mkIf config.led.enable {
|
||||||
|
systemd.services.micmute = {
|
||||||
|
description = "Set microphone mute and normal mute LEDs to off";
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "/bin/sh -c 'echo 0 | tee /sys/class/leds/platform::micmute/brightness > /dev/null; echo 0 | tee /sys/class/leds/platform::mute/brightness > /dev/null'";
|
||||||
|
Type = "oneshot";
|
||||||
|
User = "root";
|
||||||
|
Group = "root";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./ags
|
./ags
|
||||||
./hypridle
|
./idle
|
||||||
./hyprland
|
./land
|
||||||
./style
|
./style
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
hypridle.enable = lib.mkEnableOption "Enables kitty";
|
hypridle.enable = lib.mkEnableOption "";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.hypridle.enable {
|
config = lib.mkIf config.hypridle.enable {
|
|
@ -22,7 +22,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
"$sciPath" = "~/nix/modules/hypr/hyprland/scripts";
|
"$sciPath" = "~/nix/modules/hypr/land/scripts";
|
||||||
cursor = {
|
cursor = {
|
||||||
inactive_timeout = "3";
|
inactive_timeout = "3";
|
||||||
};
|
};
|
Loading…
Reference in a new issue