add core configuration
This commit is contained in:
parent
74c78e1c68
commit
f40517cff1
94 changed files with 2816 additions and 959 deletions
79
machines/nix/configuration.nix
Normal file
79
machines/nix/configuration.nix
Normal file
|
@ -0,0 +1,79 @@
|
|||
# This is your system's configuration file.
|
||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
||||
{...}: {
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
flake-self,
|
||||
...
|
||||
}: {
|
||||
# You can import other NixOS modules here
|
||||
imports = [
|
||||
# Or modules from other flakes (such as nixos-hardware):
|
||||
# inputs.hardware.nixosModules.common-cpu-amd
|
||||
# inputs.hardware.nixosModules.common-ssd
|
||||
|
||||
# inputs.home-manager.nixosModules.home-manager
|
||||
# inputs.nix-gaming.nixosModules.platformOptimizations
|
||||
|
||||
# Import your generated (nixos-generate-config) hardware configuration
|
||||
./hardware-configuration.nix
|
||||
# ../common.nix
|
||||
# ./plymouth.nix
|
||||
];
|
||||
lily = {
|
||||
users.lily.enable = true;
|
||||
laptop.enable = true;
|
||||
common.enable = true;
|
||||
containers = {
|
||||
enable = true;
|
||||
podman = true;
|
||||
# docker = false;
|
||||
};
|
||||
nvidia.enable = true;
|
||||
desktop = {
|
||||
enable = true;
|
||||
hyprland.enable = true;
|
||||
plasma.enable = true;
|
||||
};
|
||||
};
|
||||
networking.hostName = "nix";
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
timeout = 0;
|
||||
};
|
||||
consoleLogLevel = 0;
|
||||
initrd.verbose = false;
|
||||
kernelPackages = pkgs.linuxPackages_lqx;
|
||||
kernelParams = [
|
||||
"quiet"
|
||||
"splash"
|
||||
];
|
||||
};
|
||||
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
platformOptimizations.enable = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
gamescopeSession.enable = true;
|
||||
extraCompatPackages = let gamePkgs = inputs.nix-gaming.packages.${pkgs.hostPlatform.system}; in [pkgs.proton-ge-bin gamePkgs.northstar-proton];
|
||||
};
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
users = {
|
||||
lily = flake-self.homeConfigurations.lily;
|
||||
};
|
||||
};
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
# system.stateVersion = "24.11";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue