mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
Merge branch 'master' of https://github.com/starr-dusT/dotfiles
This commit is contained in:
commit
f75f5b1901
@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
bulwark = lib.nixosSystem {
|
bulwark = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user; inherit pkgs-unstable; };
|
specialArgs = { inherit user; inherit pkgs-unstable; inherit jovian-nixos; inherit home-manager; };
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/bulwark/configuration.nix
|
./hosts/bulwark/configuration.nix
|
||||||
./hosts/bulwark/hardware.nix
|
./hosts/bulwark/hardware.nix
|
||||||
|
@ -41,9 +41,9 @@
|
|||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
# Enable sound.
|
# Enable sound.
|
||||||
sound.enable = true;
|
#sound.enable = true;
|
||||||
hardware.pulseaudio.enable = true;
|
#hardware.pulseaudio.enable = true;
|
||||||
hardware.pulseaudio.support32Bit = true;
|
#hardware.pulseaudio.support32Bit = true;
|
||||||
|
|
||||||
# Add fonts
|
# Add fonts
|
||||||
fonts.fonts = with pkgs; [
|
fonts.fonts = with pkgs; [
|
||||||
@ -51,8 +51,8 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
# Enable virtualisation
|
# Enable virtualisation
|
||||||
virtualisation.docker.enable = true;
|
#virtualisation.docker.enable = true;
|
||||||
virtualisation.docker.storageDriver = "btrfs";
|
#virtualisation.docker.storageDriver = "btrfs";
|
||||||
|
|
||||||
# Enable zsh
|
# Enable zsh
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
38
provision/nixos/hosts/bulwark/hardware.nix
Normal file
38
provision/nixos/hosts/bulwark/hardware.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/1fddaaed-6ad9-4e7f-b613-3059e2cb019b";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/AA59-9D24";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/a7cd6a07-c564-4056-a1b5-69a71effd237"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [ ./steam.nix ];
|
imports = [ ./steam.nix ./steam-deck.nix ];
|
||||||
}
|
}
|
||||||
|
@ -1,29 +1,34 @@
|
|||||||
{ config, lib, pkgs, pkgs-unstable, user, jovian-nixos, ... }:
|
{ config, lib, pkgs, pkgs-unstable, user, jovian-nixos, home-manager, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.modules.gaming.steam-deck;
|
cfg = config.modules.gaming.steam-deck;
|
||||||
in {
|
in {
|
||||||
|
imports = [
|
||||||
|
(jovian-nixos + "/modules")
|
||||||
|
home-manager.nixosModule
|
||||||
|
];
|
||||||
options.modules.gaming.steam-deck.enable = lib.mkEnableOption "steam-deck";
|
options.modules.gaming.steam-deck.enable = lib.mkEnableOption "steam-deck";
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
imports = [
|
|
||||||
(jovian-nixos + "/modules")
|
|
||||||
home-manager.nixosModule
|
|
||||||
];
|
|
||||||
|
|
||||||
jovian = {
|
jovian = {
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
|
steam.autoStart = true;
|
||||||
|
steam.user = "${user}";
|
||||||
devices.steamdeck = {
|
devices.steamdeck = {
|
||||||
enable = true;
|
enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.displayManager.gdm.wayland = lib.mkForce true; # lib.mkForce is only required on my setup because I'm using some other NixOS configs that conflict with this value
|
services.xserver.displayManager.gdm.wayland = lib.mkForce true; # lib.mkForce is only required on my setup because I'm using some other NixOS configs that conflict with this value
|
||||||
services.xserver.displayManager.defaultSession = "steam-wayland";
|
services.xserver.displayManager.defaultSession = "steam-wayland";
|
||||||
services.xserver.displayManager.autoLogin.enable = true;
|
services.xserver.displayManager.autoLogin.enable = true;
|
||||||
services.xserver.displayManager.autoLogin.user = ${user};
|
services.xserver.displayManager.autoLogin.user = "${user}";
|
||||||
|
|
||||||
# Enable GNOME
|
# Enable GNOME
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
hardware.pulseaudio.enable = lib.mkForce false;
|
||||||
|
|
||||||
services.xserver.desktopManager.gnome = {
|
services.xserver.desktopManager.gnome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
@ -89,9 +94,8 @@ in {
|
|||||||
steamdeck-firmware
|
steamdeck-firmware
|
||||||
];
|
];
|
||||||
|
|
||||||
# GNOME settings through home-manager
|
# GNOME settings through home
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
home.stateVersion = "22.11";
|
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
# Enable on-screen keyboard
|
# Enable on-screen keyboard
|
||||||
"org/gnome/desktop/a11y/applications" = {
|
"org/gnome/desktop/a11y/applications" = {
|
||||||
@ -123,4 +127,5 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user