mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
misc cleanup
This commit is contained in:
parent
7326e9213e
commit
ef9f011e57
9 changed files with 62 additions and 60 deletions
19
flake.nix
19
flake.nix
|
|
@ -6,7 +6,7 @@
|
||||||
stable.url = "github:NixOS/nixpkgs/nixos-22.11";
|
stable.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||||
#nix 2.14
|
#nix 2.14
|
||||||
nix.url = "github:NixOS/nix/70d01bdec1f9e2d9deba8198e99f2ad0a663d08c";
|
nix.url = "github:NixOS/nix/70d01bdec1f9e2d9deba8198e99f2ad0a663d08c";
|
||||||
#utilites --maybe flake-parts soon?
|
#utilites
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
nixos-generators = {
|
nixos-generators = {
|
||||||
url = "github:nix-community/nixos-generators";
|
url = "github:nix-community/nixos-generators";
|
||||||
|
|
@ -25,7 +25,6 @@
|
||||||
url = "github:the-argus/spicetify-nix";
|
url = "github:the-argus/spicetify-nix";
|
||||||
inputs.nixpkgs.follows = "unstable";
|
inputs.nixpkgs.follows = "unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
#my own packages
|
#my own packages
|
||||||
suckless = {
|
suckless = {
|
||||||
url = "github:Gerg-L/suckless";
|
url = "github:Gerg-L/suckless";
|
||||||
|
|
@ -40,7 +39,7 @@
|
||||||
inputs.nixpkgs.follows = "unstable";
|
inputs.nixpkgs.follows = "unstable";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
outputs = {
|
outputs = inputs @ {
|
||||||
self,
|
self,
|
||||||
unstable,
|
unstable,
|
||||||
flake-utils,
|
flake-utils,
|
||||||
|
|
@ -48,7 +47,7 @@
|
||||||
nixos-generators,
|
nixos-generators,
|
||||||
disko,
|
disko,
|
||||||
...
|
...
|
||||||
} @ inputs:
|
}:
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
gerg-desktop = unstable.lib.nixosSystem {
|
gerg-desktop = unstable.lib.nixosSystem {
|
||||||
|
|
@ -59,7 +58,6 @@
|
||||||
username = "gerg";
|
username = "gerg";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
(import ./modules inputs)
|
(import ./modules inputs)
|
||||||
|
|
@ -108,10 +106,13 @@
|
||||||
formatter = pkgs.alejandra;
|
formatter = pkgs.alejandra;
|
||||||
devShells = rec {
|
devShells = rec {
|
||||||
nix = pkgs.mkShell {
|
nix = pkgs.mkShell {
|
||||||
packages = with pkgs; [sops nil alejandra deadnix statix];
|
packages = [
|
||||||
};
|
pkgs.sops
|
||||||
rust = pkgs.mkShell {
|
pkgs.nil
|
||||||
packages = with pkgs; [rust-analyzer rustc cargo rustfmt clippy];
|
pkgs.alejandra
|
||||||
|
pkgs.deadnix
|
||||||
|
pkgs.statix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
default = nix;
|
default = nix;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ in {
|
||||||
(with pkgs; [
|
(with pkgs; [
|
||||||
gnome-photos
|
gnome-photos
|
||||||
gnome-tour
|
gnome-tour
|
||||||
gnome-console
|
|
||||||
gnome-text-editor
|
gnome-text-editor
|
||||||
gnome-online-accounts
|
gnome-online-accounts
|
||||||
])
|
])
|
||||||
|
|
@ -48,6 +47,5 @@ in {
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
displayManager.defaultSession = "gnome";
|
displayManager.defaultSession = "gnome";
|
||||||
};
|
};
|
||||||
environment.systemPackages = [pkgs.gnome.gnome-terminal];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,7 @@
|
||||||
inputs: {
|
inputs: {
|
||||||
lib,
|
imports = [
|
||||||
self,
|
(import ./stage2patch.nix inputs)
|
||||||
...
|
(import ./silent.nix inputs)
|
||||||
}: {
|
(import ./misc.nix inputs)
|
||||||
imports = [(import ./stage2patch.nix inputs)];
|
];
|
||||||
environment.etc = {
|
|
||||||
"issue" = {
|
|
||||||
text = "[?12l[?25h";
|
|
||||||
mode = "0444";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
boot = {
|
|
||||||
blacklistedKernelModules = ["nouveau" "lbm-nouveau" "pcspkr"];
|
|
||||||
kernelParams = ["fbcon=nodefer" "bgrt_disable" "quiet" "systemd.show_status=false" "rd.udev.log_level=3" "vt.global_cursor_default=0"];
|
|
||||||
consoleLogLevel = 3;
|
|
||||||
initrd.verbose = false;
|
|
||||||
plymouth = {
|
|
||||||
enable = lib.mkDefault true;
|
|
||||||
theme = "breeze";
|
|
||||||
logo = "${self}/misc/nixos.png";
|
|
||||||
};
|
|
||||||
loader = {
|
|
||||||
systemd-boot = {
|
|
||||||
enable = lib.mkDefault true;
|
|
||||||
consoleMode = "max";
|
|
||||||
editor = false;
|
|
||||||
};
|
|
||||||
efi.canTouchEfiVariables = lib.mkDefault true;
|
|
||||||
timeout = 0;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
22
modules/boot/misc.nix
Normal file
22
modules/boot/misc.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
_: {
|
||||||
|
self,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
boot = {
|
||||||
|
plymouth = {
|
||||||
|
enable = lib.mkDefault true;
|
||||||
|
theme = "breeze";
|
||||||
|
logo = "${self}/misc/nixos.png";
|
||||||
|
};
|
||||||
|
loader = {
|
||||||
|
systemd-boot = {
|
||||||
|
enable = lib.mkDefault true;
|
||||||
|
consoleMode = "max";
|
||||||
|
editor = false;
|
||||||
|
};
|
||||||
|
efi.canTouchEfiVariables = lib.mkDefault true;
|
||||||
|
timeout = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
14
modules/boot/silent.nix
Normal file
14
modules/boot/silent.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
_: {
|
||||||
|
environment.etc = {
|
||||||
|
"issue" = {
|
||||||
|
text = "[?12l[?25h";
|
||||||
|
mode = "0444";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
boot = {
|
||||||
|
blacklistedKernelModules = ["pcspkr"];
|
||||||
|
kernelParams = ["fbcon=nodefer" "bgrt_disable" "quiet" "systemd.show_status=false" "rd.udev.log_level=3" "vt.global_cursor_default=0"];
|
||||||
|
consoleLogLevel = 3;
|
||||||
|
initrd.verbose = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -7,7 +7,6 @@ inputs: {
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
(import ./prime.nix inputs)
|
(import ./prime.nix inputs)
|
||||||
(import ./gaming.nix inputs)
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disko.devices = import ./disko.nix;
|
disko.devices = import ./disko.nix;
|
||||||
|
|
@ -28,9 +27,12 @@ inputs: {
|
||||||
"nvidia-persistenced"
|
"nvidia-persistenced"
|
||||||
"steam"
|
"steam"
|
||||||
"steam-original"
|
"steam-original"
|
||||||
"steam-run"
|
|
||||||
];
|
];
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
pkgs.heroic
|
||||||
|
pkgs.legendary-gl
|
||||||
|
pkgs.prismlauncher
|
||||||
|
pkgs.lutris
|
||||||
pkgs.pcmanfm #file manager
|
pkgs.pcmanfm #file manager
|
||||||
pkgs.librewolf #best browser
|
pkgs.librewolf #best browser
|
||||||
pkgs.obs-studio
|
pkgs.obs-studio
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
_: {pkgs, ...}: {
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
heroic
|
|
||||||
legendary-gl
|
|
||||||
prismlauncher
|
|
||||||
lutris
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
_: {
|
_: {config, ...}: {
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||||
prime = {
|
prime = {
|
||||||
|
|
@ -10,7 +6,6 @@ _: {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableOffloadCmd = true;
|
enableOffloadCmd = true;
|
||||||
};
|
};
|
||||||
# sync.enable = true;
|
|
||||||
amdgpuBusId = "PCI:5:0:0";
|
amdgpuBusId = "PCI:5:0:0";
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
};
|
};
|
||||||
|
|
@ -23,7 +18,6 @@ _: {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
};
|
};
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
videoDrivers = ["nvidia"];
|
|
||||||
#disable DPMS
|
#disable DPMS
|
||||||
monitorSection = ''
|
monitorSection = ''
|
||||||
Option "DPMS" "false"
|
Option "DPMS" "false"
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,11 @@ inputs: {
|
||||||
videoDrivers = ["nvidia" "amdgpu"];
|
videoDrivers = ["nvidia" "amdgpu"];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.allowedUnfree = [
|
||||||
|
"nvidia-x11"
|
||||||
|
"steam"
|
||||||
|
"steam-original"
|
||||||
|
];
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.bitwarden #store stuff
|
pkgs.bitwarden #store stuff
|
||||||
|
|
@ -54,6 +58,7 @@ inputs: {
|
||||||
pkgs.ripgrep
|
pkgs.ripgrep
|
||||||
pkgs.lutris
|
pkgs.lutris
|
||||||
pkgs.prismlauncher
|
pkgs.prismlauncher
|
||||||
|
pkgs.xautoclick
|
||||||
# wrap webcord to remove state file https://github.com/SpacingBat3/WebCord/issues/360
|
# wrap webcord to remove state file https://github.com/SpacingBat3/WebCord/issues/360
|
||||||
(pkgs.symlinkJoin {
|
(pkgs.symlinkJoin {
|
||||||
name = "webcord-wrapper";
|
name = "webcord-wrapper";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue