mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-25 04:02:11 +02:00
nix: Abstract logic outside of flake
Now flake.nix does *not* need to be edited when adjusting the configuration unless actual changes need to be done to the inputs.
This commit is contained in:
parent
343076f942
commit
84af6079e4
43
common.nix
43
common.nix
@ -1,6 +1,17 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, hypr-contrib, nix-gaming, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./modules
|
||||||
|
./user.nix
|
||||||
|
./desktop
|
||||||
|
./dev
|
||||||
|
./games.nix
|
||||||
|
./host
|
||||||
|
./containers/rar.nix
|
||||||
|
./containers/wine.nix
|
||||||
|
];
|
||||||
|
|
||||||
# locale
|
# locale
|
||||||
i18n.defaultLocale = "ja_JP.UTF-8";
|
i18n.defaultLocale = "ja_JP.UTF-8";
|
||||||
i18n.supportedLocales =
|
i18n.supportedLocales =
|
||||||
@ -14,6 +25,36 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
|
||||||
|
boot.loader = {
|
||||||
|
systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
editor = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
timeout = 0;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.tmp.useTmpfs = true;
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
hypr-contrib.packages."x86_64-linux".grimblast
|
||||||
|
nix-gaming.packages."x86_64-linux".osu-stable
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
VISUAL = "nvim";
|
||||||
|
GIT_DISCOVERY_ACROSS_FILESYSTEM = "1";
|
||||||
|
FZF_DEFAULT_OPTS = "--height 40% --reverse --border --color=16";
|
||||||
|
NODE_OPTIONS = "--max_old_space_size=16384";
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.defaultPackages = [ ];
|
||||||
|
system.stateVersion = "22.11";
|
||||||
|
|
||||||
# home-manager
|
# home-manager
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
39
flake.nix
39
flake.nix
@ -42,46 +42,7 @@
|
|||||||
hyprland.nixosModules.default
|
hyprland.nixosModules.default
|
||||||
stylix.nixosModules.stylix
|
stylix.nixosModules.stylix
|
||||||
nix-gaming.nixosModules.pipewireLowLatency
|
nix-gaming.nixosModules.pipewireLowLatency
|
||||||
./applications
|
|
||||||
./common.nix
|
./common.nix
|
||||||
./user.nix
|
|
||||||
./desktop
|
|
||||||
./dev
|
|
||||||
./games.nix
|
|
||||||
./host
|
|
||||||
./terminal
|
|
||||||
./containers/rar.nix
|
|
||||||
{
|
|
||||||
hardware.opengl.driSupport32Bit = true;
|
|
||||||
|
|
||||||
boot.loader = {
|
|
||||||
systemd-boot = {
|
|
||||||
enable = true;
|
|
||||||
editor = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
timeout = 0;
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.tmp.useTmpfs = true;
|
|
||||||
|
|
||||||
environment.systemPackages = [
|
|
||||||
hypr-contrib.packages."x86_64-linux".grimblast
|
|
||||||
nix-gaming.packages."x86_64-linux".osu-stable
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.sessionVariables = {
|
|
||||||
EDITOR = "nvim";
|
|
||||||
VISUAL = "nvim";
|
|
||||||
GIT_DISCOVERY_ACROSS_FILESYSTEM = "1";
|
|
||||||
FZF_DEFAULT_OPTS = "--height 40% --reverse --border --color=16";
|
|
||||||
NODE_OPTIONS = "--max_old_space_size=16384";
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.defaultPackages = [ ];
|
|
||||||
system.stateVersion = "22.11";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user