Added new configs and hyprvirtmon.py
This commit is contained in:
5
.sops.yaml
Normal file
5
.sops.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
creation_rules:
|
||||||
|
- path_regex: '^secrets/.*\.(creds|ya?ml)$'
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- age1sgy2zjxwfxggvuw9l55p4zklzxjadp4mcdmt7vdc5pemqgqv3geqh0tgs7
|
||||||
@@ -5,141 +5,291 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.kernelModules = [ "fuse" "coretemp" "cifs" ];
|
boot.supportedFilesystems = [ "vfat" "ext4" "cifs" ];
|
||||||
|
boot.kernelModules = [ "fuse" "coretemp" "cifs" ];
|
||||||
|
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d /mnt/books 0755 root root -"
|
||||||
|
"d /mnt/books_extra 0755 root root -"
|
||||||
|
"d /mnt/music 0755 root root -"
|
||||||
|
"d /mnt/music_ext 0755 root root -"
|
||||||
|
"d /mnt/games 0755 root root -"
|
||||||
|
"d /mnt/games_ext 0755 root root -"
|
||||||
|
"d /mnt/roms_ext 0755 root root -"
|
||||||
|
"d /mnt/podcasts 0755 root root -"
|
||||||
|
"d /mnt/audiobooks 0755 root root -"
|
||||||
|
];
|
||||||
|
|
||||||
networking.hostName = "xps13"; # Define your hostname.
|
fileSystems."/mnt/books" = {
|
||||||
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
device = "//10.0.0.76/Books";
|
||||||
# networking.networkmanager.enable = true;
|
fsType = "cifs";
|
||||||
networking.wireless.networks = {
|
options = [
|
||||||
MyLocalTech = {
|
"credentials=/run/secrets/smb"
|
||||||
pskRaw = "ac1030d721d26deb2c7db10073dfac73244e9621f4462e3e568017da03201e0e";
|
"vers=3.0"
|
||||||
};
|
"uid=1000" "gid=1000"
|
||||||
};
|
"file_mode=0664" "dir_mode=0775"
|
||||||
# Set your time zone.
|
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||||
time.timeZone = "America/New_York";
|
"_netdev" "nofail"
|
||||||
|
"x-systemd.automount" "noauto"
|
||||||
|
"x-systemd.idle-timeout=10min"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
fileSystems."/mnt/books_ext" = {
|
||||||
|
device = "//10.0.0.76/books_ext";
|
||||||
|
fsType = "cifs";
|
||||||
|
options = [
|
||||||
|
"credentials=/run/secrets/smb"
|
||||||
|
"vers=3.0"
|
||||||
|
"uid=1000" "gid=1000"
|
||||||
|
"file_mode=0664" "dir_mode=0775"
|
||||||
|
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||||
|
"_netdev" "nofail"
|
||||||
|
"x-systemd.automount" "noauto"
|
||||||
|
"x-systemd.idle-timeout=10min"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
fileSystems."/mnt/music" = {
|
||||||
|
device = "//10.0.0.76/music";
|
||||||
|
fsType = "cifs";
|
||||||
|
options = [
|
||||||
|
"credentials=/run/secrets/smb"
|
||||||
|
"vers=3.0"
|
||||||
|
"uid=1000" "gid=1000"
|
||||||
|
"file_mode=0664" "dir_mode=0775"
|
||||||
|
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||||
|
"_netdev" "nofail"
|
||||||
|
"x-systemd.automount" "noauto"
|
||||||
|
"x-systemd.idle-timeout=10min"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
fileSystems."/mnt/music_ext" = {
|
||||||
|
device = "//10.0.0.76/music_ext";
|
||||||
|
fsType = "cifs";
|
||||||
|
options = [
|
||||||
|
"credentials=/run/secrets/smb"
|
||||||
|
"vers=3.0"
|
||||||
|
"uid=1000" "gid=1000"
|
||||||
|
"file_mode=0664" "dir_mode=0775"
|
||||||
|
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||||
|
"_netdev" "nofail"
|
||||||
|
"x-systemd.automount" "noauto"
|
||||||
|
"x-systemd.idle-timeout=10min"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
fileSystems."/mnt/games" = {
|
||||||
|
device = "//10.0.0.76/games";
|
||||||
|
fsType = "cifs";
|
||||||
|
options = [
|
||||||
|
"credentials=/run/secrets/smb"
|
||||||
|
"vers=3.0"
|
||||||
|
"uid=1000" "gid=1000"
|
||||||
|
"file_mode=0664" "dir_mode=0775"
|
||||||
|
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||||
|
"_netdev" "nofail"
|
||||||
|
"x-systemd.automount" "noauto"
|
||||||
|
"x-systemd.idle-timeout=10min"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
fileSystems."/mnt/games_ext" = {
|
||||||
|
device = "//10.0.0.76/games_ext";
|
||||||
|
fsType = "cifs";
|
||||||
|
options = [
|
||||||
|
"credentials=/run/secrets/smb"
|
||||||
|
"vers=3.0"
|
||||||
|
"uid=1000" "gid=1000"
|
||||||
|
"file_mode=0664" "dir_mode=0775"
|
||||||
|
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||||
|
"_netdev" "nofail"
|
||||||
|
"x-systemd.automount" "noauto"
|
||||||
|
"x-systemd.idle-timeout=10min"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
fileSystems."/mnt/roms_ext" = {
|
||||||
|
device = "//10.0.0.76/roms_ext";
|
||||||
|
fsType = "cifs";
|
||||||
|
options = [
|
||||||
|
"credentials=/run/secrets/smb"
|
||||||
|
"vers=3.0"
|
||||||
|
"uid=1000" "gid=1000"
|
||||||
|
"file_mode=0664" "dir_mode=0775"
|
||||||
|
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||||
|
"_netdev" "nofail"
|
||||||
|
"x-systemd.automount" "noauto"
|
||||||
|
"x-systemd.idle-timeout=10min"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
fileSystems."/mnt/podcasts" = {
|
||||||
|
device = "//10.0.0.76/podcasts";
|
||||||
|
fsType = "cifs";
|
||||||
|
options = [
|
||||||
|
"credentials=/run/secrets/smb"
|
||||||
|
"vers=3.0"
|
||||||
|
"uid=1000" "gid=1000"
|
||||||
|
"file_mode=0664" "dir_mode=0775"
|
||||||
|
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||||
|
"_netdev" "nofail"
|
||||||
|
"x-systemd.automount" "noauto"
|
||||||
|
"x-systemd.idle-timeout=10min"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
fileSystems."/mnt/audiobooks" = {
|
||||||
|
device = "//10.0.0.76/audiobooks";
|
||||||
|
fsType = "cifs";
|
||||||
|
options = [
|
||||||
|
"credentials=/run/secrets/smb"
|
||||||
|
"vers=3.0"
|
||||||
|
"uid=1000" "gid=1000"
|
||||||
|
"file_mode=0664" "dir_mode=0775"
|
||||||
|
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||||
|
"_netdev" "nofail"
|
||||||
|
"x-systemd.automount" "noauto"
|
||||||
|
"x-systemd.idle-timeout=10min"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
sops.secrets.smb = {
|
||||||
|
sopsFile = ./secrets/smb.creds;
|
||||||
|
format = "binary";
|
||||||
|
mode = "0400";
|
||||||
|
owner = "root";
|
||||||
|
group = "root";
|
||||||
|
};
|
||||||
|
networking.hostName = "xps13"; # Define your hostname.
|
||||||
|
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
# networking.networkmanager.enable = true;
|
||||||
|
networking.wireless.networks = {
|
||||||
|
MyLocalTech = {
|
||||||
|
pskRaw = "ac1030d721d26deb2c7db10073dfac73244e9621f4462e3e568017da03201e0e";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "America/New_York";
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
LC_ADDRESS = "en_US.UTF-8";
|
LC_ADDRESS = "en_US.UTF-8";
|
||||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||||
LC_MEASUREMENT = "en_US.UTF-8";
|
LC_MEASUREMENT = "en_US.UTF-8";
|
||||||
LC_MONETARY = "en_US.UTF-8";
|
LC_MONETARY = "en_US.UTF-8";
|
||||||
LC_NAME = "en_US.UTF-8";
|
LC_NAME = "en_US.UTF-8";
|
||||||
LC_NUMERIC = "en_US.UTF-8";
|
LC_NUMERIC = "en_US.UTF-8";
|
||||||
LC_PAPER = "en_US.UTF-8";
|
LC_PAPER = "en_US.UTF-8";
|
||||||
LC_TELEPHONE = "en_US.UTF-8";
|
LC_TELEPHONE = "en_US.UTF-8";
|
||||||
LC_TIME = "en_US.UTF-8";
|
LC_TIME = "en_US.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
# You can disable this if you're only using the Wayland session.
|
# You can disable this if you're only using the Wayland session.
|
||||||
services.xserver.enable = true;
|
# services.xserver.enable = true;
|
||||||
|
|
||||||
# Enable the KDE Plasma Desktop Environment.
|
# Enable the KDE Plasma Desktop Environment.
|
||||||
services.displayManager.sddm.enable = true;
|
services.displayManager.sddm.enable = true;
|
||||||
services.desktopManager.plasma6.enable = true;
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
services.xserver.xkb = {
|
# services.xserver.xkb = {
|
||||||
layout = "us";
|
# layout = "us";
|
||||||
variant = "";
|
# variant = "";
|
||||||
};
|
# };
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
programs.uwsm.enable = true;
|
||||||
|
programs.hyprland.withUWSM = true;
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
services.pulseaudio.enable = false;
|
services.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
# If you want to use JACK applications, uncomment this
|
jack.enable = true;
|
||||||
jack.enable = true;
|
|
||||||
|
|
||||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||||
# no need to redefine it in your config for now)
|
# no need to redefine it in your config for now)
|
||||||
#media-session.enable = true;
|
#media-session.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
services.libinput.enable = true;
|
services.libinput.enable = true;
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
nerd-fonts.fira-code
|
nerd-fonts.fira-code
|
||||||
nerd-fonts.space-mono
|
nerd-fonts.space-mono
|
||||||
nerd-fonts.sauce-code-pro
|
nerd-fonts.sauce-code-pro
|
||||||
nerd-fonts.monofur
|
nerd-fonts.monofur
|
||||||
|
nerd-fonts.noto
|
||||||
|
nerd-fonts.fira-mono
|
||||||
];
|
];
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.th3r00t = {
|
users.users.th3r00t = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Mike 'th3r00t' Young";
|
description = "Mike 'th3r00t' Young";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" "input" ];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
kdePackages.kate
|
# kdePackages.kate
|
||||||
# thunderbird
|
# thunderbird
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable automatic login for the user.
|
# Enable automatic login for the user.
|
||||||
services.displayManager.autoLogin.enable = true;
|
services.displayManager.autoLogin.enable = true;
|
||||||
services.displayManager.autoLogin.user = "th3r00t";
|
services.displayManager.autoLogin.user = "th3r00t";
|
||||||
|
|
||||||
# Install firefox.
|
programs.firefox.enable = true;
|
||||||
programs.firefox.enable = true;
|
programs.hyprland.enable = true;
|
||||||
|
|
||||||
# Allow unfree packages
|
nixpkgs.config.allowUnfree = true;
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.variables.EDITOR = "vim";
|
environment.variables.EDITOR = "nvim";
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
# wget
|
# wget
|
||||||
git
|
git
|
||||||
vim
|
vim
|
||||||
curl
|
curl
|
||||||
];
|
age
|
||||||
|
sops
|
||||||
|
];
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
programs.mtr.enable = true;
|
programs.mtr.enable = true;
|
||||||
programs.gnupg.agent = {
|
programs.gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts = [ 21 22 80 443 8080 ];
|
networking.firewall.allowedTCPPorts = [ 21 22 80 443 5900 8080 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 21 22 80 443 8080 ];
|
networking.firewall.allowedUDPPorts = [ 21 22 80 443 5900 8080 ];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
44
flake.lock
generated
44
flake.lock
generated
@@ -202,6 +202,26 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-index-database": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1754800038,
|
||||||
|
"narHash": "sha256-UbLO8/0pVBXLJuyRizYOJigtzQAj8Z2bTnbKSec/wN0=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-index-database",
|
||||||
|
"rev": "b65f8d80656f9fcbd1fecc4b7f0730f468333142",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-index-database",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1755113249,
|
"lastModified": 1755113249,
|
||||||
@@ -238,7 +258,29 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nix-index-database": "nix-index-database",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"sops-nix": "sops-nix"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sops-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1754988908,
|
||||||
|
"narHash": "sha256-t+voe2961vCgrzPFtZxha0/kmFSHFobzF00sT8p9h0U=",
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"rev": "3223c7a92724b5d804e9988c6b447a0d09017d48",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
|
|||||||
24
flake.nix
24
flake.nix
@@ -11,12 +11,25 @@
|
|||||||
# to avoid problems caused by different versions of nixpkgs.
|
# to avoid problems caused by different versions of nixpkgs.
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
nix-index-database.url = "github:nix-community/nix-index-database";
|
||||||
|
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
||||||
|
sops-nix.url = "github:Mic92/sops-nix";
|
||||||
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@inputs:
|
outputs = { self, nixpkgs, home-manager, nix-index-database, sops-nix, ... }@inputs:
|
||||||
let
|
let
|
||||||
overlays = [
|
overlays = [
|
||||||
inputs.neovim-nightly-overlay.overlays.default
|
inputs.neovim-nightly-overlay.overlays.default
|
||||||
|
(final: prev: {
|
||||||
|
dosbox-x = prev.dosbox-x.overrideAttrs (old: {
|
||||||
|
buildInputs = (old.buildInputs or []) ++ [ prev.libGL prev.glew ];
|
||||||
|
configureFlags = (old.configureFlags or []) ++ [
|
||||||
|
"--enable-sdl2"
|
||||||
|
"--enable-opengl"
|
||||||
|
];
|
||||||
|
});
|
||||||
|
})
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
nixosConfigurations.xps13 = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.xps13 = nixpkgs.lib.nixosSystem {
|
||||||
@@ -24,12 +37,19 @@
|
|||||||
specialArgs = { inherit overlays; };
|
specialArgs = { inherit overlays; };
|
||||||
modules = [
|
modules = [
|
||||||
{ nixpkgs.overlays = overlays; }
|
{ nixpkgs.overlays = overlays; }
|
||||||
|
sops-nix.nixosModules.sops
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
# home-manager.useGlobalPkgs = true;
|
# home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.sharedModules = [ {nixpkgs.overlays = overlays;} ];
|
home-manager.sharedModules = [ {nixpkgs.overlays = overlays;} ];
|
||||||
home-manager.users.th3r00t = import ./home.nix;
|
home-manager.users.th3r00t = {
|
||||||
|
imports = [
|
||||||
|
./home.nix
|
||||||
|
nix-index-database.homeModules.nix-index
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# home-manager.users.th3r00t = import ./home.nix;
|
||||||
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -26,7 +26,12 @@
|
|||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [
|
||||||
|
{
|
||||||
|
device = "/var/lib/swapfile";
|
||||||
|
size = 16 * 1024; # 16 GiB
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# 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
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
@@ -38,4 +43,36 @@
|
|||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
# hardware.opengl.enable = true;
|
||||||
|
# hardware.graphics.enable = true;
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
enable32Bit = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
# libva-intel-driver
|
||||||
|
libva-utils
|
||||||
|
intel-media-driver # Uncomment if you want to use the Intel Media Driver
|
||||||
|
vaapiIntel
|
||||||
|
vpl-gpu-rt
|
||||||
|
libglvnd
|
||||||
|
mesa
|
||||||
|
];
|
||||||
|
extraPackages32 = with pkgs.pkgsi686Linux; [
|
||||||
|
# libva-intel-driver
|
||||||
|
libglvnd
|
||||||
|
];
|
||||||
|
};
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = true;
|
||||||
|
settings = {
|
||||||
|
General = {
|
||||||
|
Experimental = true;
|
||||||
|
FastConnectable = true;
|
||||||
|
};
|
||||||
|
Policy = {
|
||||||
|
AutoEnable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,7 +159,9 @@ channels = (
|
|||||||
{ name = "#zig"; chatnet = "liberachat"; autojoin = "yes"; },
|
{ name = "#zig"; chatnet = "liberachat"; autojoin = "yes"; },
|
||||||
{ name = "#python"; chatnet = "liberachat"; autojoin = "yes"; },
|
{ name = "#python"; chatnet = "liberachat"; autojoin = "yes"; },
|
||||||
{ name = "#vimwiki"; chatnet = "liberachat"; autojoin = "yes"; },
|
{ name = "#vimwiki"; chatnet = "liberachat"; autojoin = "yes"; },
|
||||||
{ name = "#foot"; chatnet = "liberachat"; autojoin = "yes"; }
|
{ name = "#foot"; chatnet = "liberachat"; autojoin = "no"; }
|
||||||
|
{ name = "#nixos"; chatnet = "liberachat"; autojoin = "yes"; }
|
||||||
|
{ name = "#nixos-chat"; chatnet = "liberachat"; autojoin = "yes"; }
|
||||||
);
|
);
|
||||||
|
|
||||||
aliases = {
|
aliases = {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
# Set the directory where your dotfiles are located
|
# Set the directory where your dotfiles are located
|
||||||
DOTFILES_DIR="${HOME}/.dotfiles"
|
DOTFILES_DIR="${HOME}/.dotfiles"
|
||||||
|
|
||||||
# Use fzf to select a file
|
|
||||||
file=$(find "$DOTFILES_DIR" -type f -name "*.*" | \
|
file=$(find "$DOTFILES_DIR" -type f -name "*.*" | \
|
||||||
fzf --delimiter / --with-nth=-1 --keep-right \
|
fzf --delimiter / --with-nth=-1 --keep-right \
|
||||||
--prompt="Dotfiles " \
|
--prompt="Dotfiles " \
|
||||||
|
|||||||
63
home/.local/usr/bin/hyprvirtmon.py
Executable file
63
home/.local/usr/bin/hyprvirtmon.py
Executable file
@@ -0,0 +1,63 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import subprocess
|
||||||
|
import json
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
try:
|
||||||
|
result = subprocess.run(
|
||||||
|
['hyprctl', '-j', 'monitors'],
|
||||||
|
capture_output=True, text=True, check=True
|
||||||
|
)
|
||||||
|
monitors = json.loads(result.stdout)
|
||||||
|
monitor_names = []
|
||||||
|
for monitor in monitors:
|
||||||
|
if 'name' in monitor:
|
||||||
|
monitor_names.append(monitor['name'])
|
||||||
|
if "Virtual-1" in monitor_names:
|
||||||
|
result = subprocess.run(
|
||||||
|
["hyprctl", "keyword", "monitor", "Virtual-1,disable"],
|
||||||
|
capture_output=True, text=True, check=True
|
||||||
|
)
|
||||||
|
if result.returncode != 0:
|
||||||
|
print("Failed to disable monitor Virtual-1", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
else:
|
||||||
|
result = subprocess.run(["pkill", "-x", "wayvnc"],
|
||||||
|
capture_output=True, text=True)
|
||||||
|
if result.returncode != 0:
|
||||||
|
print("Failed to stop wayvnc", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
else:
|
||||||
|
sys.exit(0)
|
||||||
|
else:
|
||||||
|
result = subprocess.run(
|
||||||
|
["hyprctl", "keyword", "monitor",
|
||||||
|
"Virtual-1, 2800x1752@120,1920x0,2"],
|
||||||
|
capture_output=True, text=True, check=True
|
||||||
|
)
|
||||||
|
if result.returncode != 0:
|
||||||
|
print("Failed to set monitor Virtual-1", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
else:
|
||||||
|
result = subprocess.run(
|
||||||
|
["hyprctl", "output", "create", "headless", "Virtual-1"],
|
||||||
|
capture_output=True, text=True, check=True
|
||||||
|
)
|
||||||
|
if result.returncode != 0:
|
||||||
|
print("Failed to create headless monitor Virtual-1",
|
||||||
|
file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
else:
|
||||||
|
result = subprocess.Popen(
|
||||||
|
["wayvnc", "--output=Virtual-1", "0.0.0.0", "5900", "&"],
|
||||||
|
stdout=subprocess.DEVNULL,
|
||||||
|
stderr=subprocess.DEVNULL)
|
||||||
|
|
||||||
|
except subprocess.CalledProcessError as e:
|
||||||
|
print(f"Error executing hyprctl: {e}", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
except Exception as e:
|
||||||
|
print(f"An unexpected error occurred: {e}", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
fastfetch --logo small --structure "title:os:kernel:cpu:memory:disk:uptime"
|
fastfetch --logo small --structure "title:os:kernel:cpu:memory:disk:uptime"
|
||||||
misfortune|cowsay|lolcat
|
fortune|cowsay|lolcat
|
||||||
|
|
||||||
exec zsh
|
exec zsh
|
||||||
|
|||||||
@@ -312,12 +312,14 @@ convertdrivefat = true
|
|||||||
#
|
#
|
||||||
frameskip = 0
|
frameskip = 0
|
||||||
aspect = false
|
aspect = false
|
||||||
aspect_ratio = 0:0
|
aspect_ratio = 16:9
|
||||||
char9 = true
|
char9 = true
|
||||||
euro = -1
|
euro = -1
|
||||||
doublescan = true
|
doublescan = false
|
||||||
scaler = super2xsai
|
scaler = none
|
||||||
glshader = none
|
# scaler = advinterp2x forced
|
||||||
|
# scaler = super2xsai forced
|
||||||
|
# glshader = sharp
|
||||||
pixelshader = none
|
pixelshader = none
|
||||||
autofit = true
|
autofit = true
|
||||||
monochrome_pal = green
|
monochrome_pal = green
|
||||||
@@ -680,10 +682,10 @@ mididevice = mt32
|
|||||||
midiconfig =
|
midiconfig =
|
||||||
samplerate = 48000
|
samplerate = 48000
|
||||||
mpuirq = -1
|
mpuirq = -1
|
||||||
mt32.romdir = ~/.dos/midi
|
mt32.romdir = /mnt/games/Roms/Dos/midi/
|
||||||
mt32.model = auto
|
mt32.model = auto
|
||||||
fluid.driver = default
|
fluid.driver = default
|
||||||
fluid.soundfont = ~/.dos/midi/soundfont1.sf2
|
fluid.soundfont =
|
||||||
|
|
||||||
[sblaster]
|
[sblaster]
|
||||||
# sbtype: Type of Sound Blaster to emulate. 'gb' is Game Blaster.
|
# sbtype: Type of Sound Blaster to emulate. 'gb' is Game Blaster.
|
||||||
@@ -1346,5 +1348,5 @@ devicehigh =
|
|||||||
[autoexec]
|
[autoexec]
|
||||||
# Lines in this section will be run at startup.
|
# Lines in this section will be run at startup.
|
||||||
# You can put your MOUNT lines here.
|
# You can put your MOUNT lines here.
|
||||||
MOUNT E ~/.dos/Roms_Zipped/
|
MOUNT E /mnt/games/Roms/Dos/Roms_Zipped/
|
||||||
MOUNT C ~/.dos/C/
|
MOUNT C /mnt/games/Roms/Dos/C/
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
local vim = vim
|
local vim = vim
|
||||||
require("options") -- lua/options.lua
|
require("options") -- ~/.nixos/home/config/nvim/lua/options.lua
|
||||||
require("plugins") -- lua/plugins.lua
|
require("plugins") -- ~/.nixos/home/config/nvim/lua/plugins.lua
|
||||||
require("utils.t3_functions") -- lua/utils/t3_functions.lua
|
require("utils.t3_functions") -- ~/.nixos/home/config/nvim/lua/utils/t3_functions.lua
|
||||||
require("utils.t3_overrides") -- lua/utils/t3_overrides.lua
|
require("utils.t3_overrides") -- ~/.nixos/home/config/nvim/lua/utils/t3_overrides.lua
|
||||||
require("utils.reload") -- lua/utils/reload.lua
|
require("utils.reload") -- ~/.nixos/home/config/nvim/lua/utils/reload.lua
|
||||||
require("vimwiki") -- lua/vimwiki.lua
|
require("vimwiki") -- ~/.nixos/home/config/nvim/lua/vimwiki.lua
|
||||||
require("keymaps") -- lua/keymaps.lua
|
require("keymaps") -- ~/.nixos/home/config/nvim/lua/keymaps.lua
|
||||||
require("lsp") -- lua/lsp.lua
|
require("lsp") -- ~/.nixos/home/config/nvim/lua/lsp.lua
|
||||||
require("completion") -- lua/completion.lua
|
require("completion") -- ~/.nixos/home/config/nvim/lua/completion.lua
|
||||||
require("treesitter") -- lua/treesitter.lua
|
require("treesitter") -- ~/.nixos/home/config/nvim/lua/treesitter.lua
|
||||||
require("autocmds") -- lua/autocmds.lua
|
require("autocmds") -- ~/.nixos/home/config/nvim/lua/autocmds.lua
|
||||||
require("diagnostics") -- lua/diagnostics.lua
|
require("diagnostics") -- ~/.nixos/home/config/nvim/lua/diagnostics.lua
|
||||||
|
|
||||||
require('tokyonight').setup({
|
require('tokyonight').setup({
|
||||||
style = "moon", -- "storm", "moon", "day", "night"
|
style = "moon", -- "storm", "moon", "day", "night"
|
||||||
|
|||||||
@@ -22,15 +22,15 @@ vim.keymap.set("n", "<leader>bp", ":bp<CR>", { desc = "Previous"})
|
|||||||
vim.keymap.set("n", "<leader>bn", ":bn<CR>", { desc = "Next"})
|
vim.keymap.set("n", "<leader>bn", ":bn<CR>", { desc = "Next"})
|
||||||
vim.keymap.set("n", "<leader>bd", ":bd<CR>", { desc = "Delete"})
|
vim.keymap.set("n", "<leader>bd", ":bd<CR>", { desc = "Delete"})
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>G", "", { desc = "Grep"})
|
vim.keymap.set("n", "<leader>g", "", { desc = "Grep"})
|
||||||
vim.keymap.set("n", "<leader>Gg", ":FzfLua grep<CR>", { desc = "Grep"})
|
vim.keymap.set("n", "<leader>gg", ":FzfLua grep<CR>", { desc = "Grep"})
|
||||||
vim.keymap.set("n", "<leader>Gr", ":FzfLua grep resume=true<CR>", { desc = "Resume Grep"})
|
vim.keymap.set("n", "<leader>gr", ":FzfLua grep resume=true<CR>", { desc = "Resume Grep"})
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>g", "", { desc = "Git"})
|
vim.keymap.set("n", "<leader>G", "", { desc = "Git"})
|
||||||
vim.keymap.set("n", "<leader>gg", ":LazyGit<CR>", { desc = "LazyGit"})
|
vim.keymap.set("n", "<leader>Gg", ":LazyGit<CR>", { desc = "LazyGit"})
|
||||||
vim.keymap.set("n", "<leader>gC", ":LazyGitConfig<CR>", { desc = "LazyGit Config"})
|
vim.keymap.set("n", "<leader>GC", ":LazyGitConfig<CR>", { desc = "LazyGit Config"})
|
||||||
vim.keymap.set("n", "<leader>gc", ":LazyGitFilter<CR>", { desc = "Commits"})
|
vim.keymap.set("n", "<leader>Gc", ":LazyGitFilter<CR>", { desc = "Commits"})
|
||||||
vim.keymap.set("n", "<leader>gl", ":LazyGitLog<CR>", { desc = "Log"})
|
vim.keymap.set("n", "<leader>Gl", ":LazyGitLog<CR>", { desc = "Log"})
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader><Tab>", "", { desc = "Tabs"})
|
vim.keymap.set("n", "<leader><Tab>", "", { desc = "Tabs"})
|
||||||
vim.keymap.set("n", "<leader><Tab><Tab>", ":tabnew<CR>", { desc = "New Tab"})
|
vim.keymap.set("n", "<leader><Tab><Tab>", ":tabnew<CR>", { desc = "New Tab"})
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ vim.o.clipboard = "unnamedplus"
|
|||||||
vim.o.completeopt = "menuone"
|
vim.o.completeopt = "menuone"
|
||||||
-- vim.o.completeopt = "menuone,noinsert,noselect"
|
-- vim.o.completeopt = "menuone,noinsert,noselect"
|
||||||
vim.o.cursorline = true
|
vim.o.cursorline = true
|
||||||
|
vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
|
||||||
vim.g.netrw_keepdir = 1
|
vim.g.netrw_keepdir = 1
|
||||||
vim.g.netrw_winsize = 15
|
vim.g.netrw_winsize = 15
|
||||||
vim.g.netrw_banner = 0
|
vim.g.netrw_banner = 0
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ require('sniprun').setup({
|
|||||||
})
|
})
|
||||||
require('toggleterm').setup({
|
require('toggleterm').setup({
|
||||||
size = 20,
|
size = 20,
|
||||||
open_mapping = [[<c-\>]],
|
open_mapping = [[<c- >]],
|
||||||
hide_numbers = true,
|
hide_numbers = true,
|
||||||
shade_filetypes = {},
|
shade_filetypes = {},
|
||||||
shading_factor = 2,
|
shading_factor = 2,
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
local configs = require('nvim-treesitter.configs')
|
local configs = require('nvim-treesitter.configs')
|
||||||
configs.setup({
|
configs.setup({
|
||||||
ensure_installed = {
|
-- ensure_installed = {
|
||||||
"ini", "bash", "c", "lua", "vim", "vimdoc", "query", "python",
|
-- "ini", "bash", "c", "lua", "vim", "vimdoc", "query", "python",
|
||||||
"rust", "zig", "typescript", "svelte", "css", "html", "nix"
|
-- "rust", "zig", "typescript", "svelte", "css", "html", "nix"
|
||||||
},
|
-- },
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true, disable = { "norg" }, },
|
indent = { enable = true, disable = { "norg" }, },
|
||||||
|
|||||||
33
home/config/waybar/power_menu.xml
Normal file
33
home/config/waybar/power_menu.xml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<interface>
|
||||||
|
<object class="GtkMenu" id="menu">
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="suspend">
|
||||||
|
<property name="label">Suspend</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="hibernate">
|
||||||
|
<property name="label">Hibernate</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="shutdown">
|
||||||
|
<property name="label">Shutdown</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSeparatorMenuItem" id="delimiter1"/>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="reboot">
|
||||||
|
<property name="label">Reboot</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="lock">
|
||||||
|
<property name="label">Lock</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
||||||
15
secrets/smb.creds
Normal file
15
secrets/smb.creds
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"data": "ENC[AES256_GCM,data:3UGtPNkpqrr1J6dDjZ9P8B7Bp6qNRhrxDf2o3ROnPKMeB+8E0J1aRr94HEtGeS3hIFiNlzI=,iv:29HTkWSjcI8XL2ss2lSNwkKtTY891NPHrPaoKu4715A=,tag:TlJdoLUT1lWZUbIbMtuovg==,type:str]",
|
||||||
|
"sops": {
|
||||||
|
"age": [
|
||||||
|
{
|
||||||
|
"recipient": "age1sgy2zjxwfxggvuw9l55p4zklzxjadp4mcdmt7vdc5pemqgqv3geqh0tgs7",
|
||||||
|
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA1cnBHZ0Zidzlsa3hDQlNn\nNjlzdGpZalhlSHg0ZU1rVHRyaCtnR3VOWkRvCkI1NUJ1UkVIRlJsRXpSSzlST1Bi\nNUdjVnpxWXpzWWJKRzR1YUFvT0IxSGsKLS0tIHlrQk42TzE0UHRwR0dLRXNLdXBn\nSnhyL3FzSHo5Y2VGdmlUNGp3SW5ydjQKfwK51gUaBOZyfrz95dN/CSGeR0jcMcgU\nYWH5WFbxwkjdAZ9HDHTq9Flhb3TwpEs0rzyaP8cZV2aWlYB7EJxCEQ==\n-----END AGE ENCRYPTED FILE-----\n"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"lastmodified": "2025-08-16T20:46:32Z",
|
||||||
|
"mac": "ENC[AES256_GCM,data:bp1//R5ijxeObUOUgDIKdAHOM5yEPYel7DxrakwVnM/CxNpDO8MWD5uqRwUIPReMl0xIYhYip1OVWM7iAX8uLeogG/08P4oyizY1CYUNSNjpVWQZ3MC4zPJt/Mz/T0kBzCTM6DXj7XuLmpJ80kX+pCjLqz8ekkXs22gCxK5uwBM=,iv:wmet5FXe5uCQE9SKGPqVB7f3lobGbjiRJvUa3B839nw=,tag:s1492IWBD/2puLQt5IW/Iw==,type:str]",
|
||||||
|
"unencrypted_suffix": "_unencrypted",
|
||||||
|
"version": "3.10.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user