mirror of
https://github.com/sadan4/dotfiles.git
synced 2024-11-16 23:04:39 -05:00
Compare commits
8 commits
288306a9a1
...
375a1b2e89
Author | SHA1 | Date | |
---|---|---|---|
|
375a1b2e89 | ||
|
1d4904a4c9 | ||
|
ad27d55764 | ||
|
c88a1ca201 | ||
|
bf348c1b68 | ||
|
e1bb34868b | ||
|
4f8f412edb | ||
|
7283e1ef8b |
21 changed files with 252 additions and 210 deletions
|
@ -3,77 +3,15 @@
|
||||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||||
|
|
||||||
{ config, lib, pkgs, inputs, ... }:
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
_v = import ../../common/programs/virt.nix { };
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
fileSystems."/mnt/d" = {
|
|
||||||
device = "/dev/disks/by-uuid/A02A12F22A12C566";
|
|
||||||
options = [
|
|
||||||
"nofail"
|
|
||||||
"uid=1000"
|
|
||||||
"gid=100"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
fileSystems."/mnt/c" = {
|
|
||||||
device = "/dev/disks/by-uuid/046C2BB16C2B9D04";
|
|
||||||
options = [
|
|
||||||
"nofail"
|
|
||||||
"uid=1000"
|
|
||||||
"gid=100"
|
|
||||||
"noauto"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
fileSystems."/mnt/f" = {
|
|
||||||
device = "/dev/disks/by-uuid/2E06B65306B61C31";
|
|
||||||
options = [
|
|
||||||
"nofail"
|
|
||||||
"uid=1000"
|
|
||||||
"gid=100"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
fileSystems."/mnt/h" = {
|
|
||||||
device = "/dev/disks/by-uuid/E0A4F8C1A4F89B6C";
|
|
||||||
options = [
|
|
||||||
"nofail"
|
|
||||||
"uid=1000"
|
|
||||||
"gid=100"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
inputs.sops-nix.nixosModules.sops
|
../../common/systemModules/audio.nix
|
||||||
|
../../common/systemModules/kde.nix
|
||||||
|
../../common/users/meyer
|
||||||
];
|
];
|
||||||
sops.defaultSopsFile = ../../secrets.yaml;
|
|
||||||
sops.defaultSopsFormat = "yaml";
|
|
||||||
sops.age.keyFile = "/home/meyer/.config/sops/age/keys.txt";
|
|
||||||
sops.secrets.password.neededForUsers = true;
|
|
||||||
users.users.meyer = {
|
|
||||||
isNormalUser = true;
|
|
||||||
hashedPasswordFile = config.sops.secrets.password.path;
|
|
||||||
extraGroups = [
|
|
||||||
"kvm"
|
|
||||||
"libvirtd"
|
|
||||||
"wheel" # Enable ‘sudo’ for the user.
|
|
||||||
"audio"
|
|
||||||
"sound"
|
|
||||||
"video"
|
|
||||||
"networkmanager"
|
|
||||||
"input"
|
|
||||||
"tty"
|
|
||||||
"plugdev"
|
|
||||||
];
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
|
||||||
home-manager = {
|
|
||||||
extraSpecialArgs = { inherit inputs; };
|
|
||||||
users = {
|
|
||||||
"meyer" = import ./home.nix;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.grub.device = "nodev";
|
boot.loader.grub.device = "nodev";
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
@ -92,7 +30,6 @@ in
|
||||||
networking.hostName = "nix-desktop-evo4b5"; # Define your hostname.
|
networking.hostName = "nix-desktop-evo4b5"; # Define your hostname.
|
||||||
# Pick only one of the below networking options.
|
# Pick only one of the below networking options.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "America/New_York";
|
time.timeZone = "America/New_York";
|
||||||
|
@ -111,47 +48,13 @@ in
|
||||||
avahi.enable = true;
|
avahi.enable = true;
|
||||||
usbmuxd.enable = true;
|
usbmuxd.enable = true;
|
||||||
};
|
};
|
||||||
services.desktopManager.plasma6.enable = true;
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||||
services.xserver = {
|
|
||||||
videoDrivers = [ "amdgpu" ];
|
|
||||||
enable = true;
|
|
||||||
displayManager.sddm = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
services.printing.drivers = with pkgs; [
|
services.printing.drivers = with pkgs; [
|
||||||
hplip
|
hplip
|
||||||
];
|
];
|
||||||
virtualisation = _v;
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
# servives.desktopManager.plasma6.enable = true;
|
|
||||||
# services.desktopManager.plasma6.enable = true;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Configure keymap in X11
|
|
||||||
# services.xserver.xkb.layout = "us";
|
|
||||||
# services.xserver.xkb.options = "eurosign:e,caps:escape";
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
# Enable sound.
|
|
||||||
# sound.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
# hardware.pulseaudio.enable = true;
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
# services.xserver.libinput.enable = true;
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
@ -162,19 +65,12 @@ in
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# networking.nameservers = ["10.0.0.97" "1.1.1.1"];
|
|
||||||
networking.nameservers = [ "10.0.0.97" ];
|
|
||||||
# List packages installed in system profile. To search, run:
|
|
||||||
# $ nix search wget
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
clinfo
|
clinfo
|
||||||
fuse
|
fuse
|
||||||
ifuse
|
ifuse
|
||||||
ddcutil
|
ddcutil
|
||||||
i2c-tools
|
i2c-tools
|
||||||
# python311
|
|
||||||
# python311Packages.evdev
|
|
||||||
# python311Packages.xlib
|
|
||||||
gcc
|
gcc
|
||||||
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
curl
|
curl
|
||||||
|
@ -227,29 +123,6 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
pinentryPackage = pkgs.pinentry-gnome3;
|
pinentryPackage = pkgs.pinentry-gnome3;
|
||||||
};
|
};
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = {
|
|
||||||
# enable = true;
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
# services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
|
||||||
# accidentally delete configuration.nix.
|
|
||||||
# system.copySystemConfiguration = true;
|
|
||||||
|
|
||||||
# This option defines the first version of NixOS you have installed on this particular machine,
|
# This option defines the first version of NixOS you have installed on this particular machine,
|
||||||
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
{}:
|
|
||||||
{
|
|
||||||
spotifyOpen = {
|
|
||||||
type = "Application";
|
|
||||||
name = "Open in Spotify";
|
|
||||||
genericName = "Music Player";
|
|
||||||
icon = "spotify-client";
|
|
||||||
terminal = false;
|
|
||||||
categories = [ "Audio" "Music" "Player" "AudioVideo" ];
|
|
||||||
exec = "qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri %U";
|
|
||||||
mimeType = [ "x-scheme-handler/spotify" ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -38,7 +38,9 @@ in
|
||||||
nodejs_22
|
nodejs_22
|
||||||
];
|
];
|
||||||
gui = with pkgs;[
|
gui = with pkgs;[
|
||||||
|
wireshark
|
||||||
pinned.vscode
|
pinned.vscode
|
||||||
|
insomnia
|
||||||
teamviewer
|
teamviewer
|
||||||
davinci-resolve
|
davinci-resolve
|
||||||
warp-terminal
|
warp-terminal
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
{}: {
|
|
||||||
enable = true;
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
{config}: {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
General = {
|
|
||||||
savePath="/home/${config.home.username}/ss/";
|
|
||||||
saveAsFileExtension=".png";
|
|
||||||
showDesktopNotification=false;
|
|
||||||
startupLaunch=true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{} : {
|
|
||||||
libvirtd.enable = true;
|
|
||||||
}
|
|
16
common/programs/wireshark.nix
Normal file
16
common/programs/wireshark.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ NAME }: { ... }: {
|
||||||
|
programs = {
|
||||||
|
wireshark = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
users = {
|
||||||
|
users = {
|
||||||
|
"${NAME}" = {
|
||||||
|
extraGroups = [
|
||||||
|
"wireshark"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,16 +0,0 @@
|
||||||
{ lib, pkgs }:
|
|
||||||
let
|
|
||||||
|
|
||||||
_ = [
|
|
||||||
"source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme"
|
|
||||||
"source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
|
||||||
"[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh"
|
|
||||||
"setopt globstarshort"
|
|
||||||
];
|
|
||||||
zshInitArgs = lib.concatMapStrings (x: x + "\n") _;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
enable = true;
|
|
||||||
oh-my-zsh.enable = true;
|
|
||||||
initExtra = zshInitArgs;
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
{ config }:
|
|
||||||
{
|
|
||||||
age.keyFile = "/home/${config.home.username}/.config/sops/age/keys.txt";
|
|
||||||
defaultSopsFile = ../secrets.yaml;
|
|
||||||
secrets.hosts = {
|
|
||||||
format = "binary";
|
|
||||||
sopsFile = ../secrets/hosts;
|
|
||||||
path = "/home/${config.home.username}/.config/gh/hosts.yml";
|
|
||||||
};
|
|
||||||
}
|
|
14
common/systemModules/audio.nix
Normal file
14
common/systemModules/audio.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{...}: {
|
||||||
|
services = {
|
||||||
|
pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa = {
|
||||||
|
enable = true;
|
||||||
|
support32Bit = true;
|
||||||
|
};
|
||||||
|
pulse = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
21
common/systemModules/kde.nix
Normal file
21
common/systemModules/kde.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ ... }: {
|
||||||
|
services = {
|
||||||
|
desktopManager = {
|
||||||
|
plasma6 = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
xserver = {
|
||||||
|
enable = true;
|
||||||
|
displayManager = {
|
||||||
|
sddm = {
|
||||||
|
enable = true;
|
||||||
|
autoNumlock = true;
|
||||||
|
wayland = {
|
||||||
|
enable = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
17
common/systemModules/networkManager.nix
Normal file
17
common/systemModules/networkManager.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ NAME }: { ... }: {
|
||||||
|
users = {
|
||||||
|
users = {
|
||||||
|
"${NAME}" = {
|
||||||
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networking = {
|
||||||
|
networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||||
|
};
|
||||||
|
}
|
24
common/systemModules/sops.nix
Normal file
24
common/systemModules/sops.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ NAME }: { config, inputs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.sops-nix.nixosModules.sops
|
||||||
|
];
|
||||||
|
sops = {
|
||||||
|
defaultSopsFile = ../../secrets.yaml;
|
||||||
|
defaultSopsFormat = "yaml";
|
||||||
|
age = {
|
||||||
|
keyFile = "/home/${NAME}/.config/sops/age/keys.txt";
|
||||||
|
};
|
||||||
|
secrets = {
|
||||||
|
password = {
|
||||||
|
neededForUsers = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
users = {
|
||||||
|
users = {
|
||||||
|
"${NAME}" = {
|
||||||
|
hashedPasswordFile = config.sops.secrets.password.path;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
14
common/systemModules/vm.nix
Normal file
14
common/systemModules/vm.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ NAME }: { ... }: {
|
||||||
|
virtualisation = {
|
||||||
|
libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
users = {
|
||||||
|
users = {
|
||||||
|
"${NAME}" = {
|
||||||
|
extraGroups = [ "kvm" "libvirtd" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
7
common/users/homeModules/arrpc.nix
Normal file
7
common/users/homeModules/arrpc.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ ... }: {
|
||||||
|
services = {
|
||||||
|
arrpc = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
17
common/users/homeModules/desktopEntries.nix
Normal file
17
common/users/homeModules/desktopEntries.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
xdg = {
|
||||||
|
desktopEntries = {
|
||||||
|
spotifyOpen = {
|
||||||
|
type = "Application";
|
||||||
|
name = "Open in Spotify";
|
||||||
|
genericName = "Music Player";
|
||||||
|
icon = "spotify-client";
|
||||||
|
terminal = false;
|
||||||
|
categories = [ "Audio" "Music" "Player" "AudioVideo" ];
|
||||||
|
exec = "qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri %U";
|
||||||
|
mimeType = [ "x-scheme-handler/spotify" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
15
common/users/homeModules/flameshot.nix
Normal file
15
common/users/homeModules/flameshot.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, ... }: {
|
||||||
|
services = {
|
||||||
|
flameshot = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
General = {
|
||||||
|
savePath = "/home/${config.home.username}/ss/";
|
||||||
|
saveAsFileExtension = ".png";
|
||||||
|
showDesktopNotification = false;
|
||||||
|
startupLaunch = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
37
common/users/homeModules/zsh.nix
Normal file
37
common/users/homeModules/zsh.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{ lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
|
||||||
|
_ = [
|
||||||
|
"source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme"
|
||||||
|
"source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||||
|
"[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh"
|
||||||
|
"setopt globstarshort"
|
||||||
|
];
|
||||||
|
zshInitArgs = lib.concatMapStrings (x: x + "\n") _;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs = {
|
||||||
|
zoxide = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
zsh = {
|
||||||
|
enable = true;
|
||||||
|
oh-my-zsh.enable = true;
|
||||||
|
initExtra = zshInitArgs;
|
||||||
|
enableCompletion = true;
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "zsh-nix-shell";
|
||||||
|
file = "nix-shell.plugin.zsh";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "chisui";
|
||||||
|
repo = "zsh-nix-shell";
|
||||||
|
rev = "v0.8.0";
|
||||||
|
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
35
common/users/meyer/default.nix
Normal file
35
common/users/meyer/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ pkgs, inputs, ... }:
|
||||||
|
let
|
||||||
|
NAME = "meyer";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(import ../../systemModules/networkManager.nix { inherit NAME; })
|
||||||
|
(import ../../systemModules/sops.nix { inherit NAME; })
|
||||||
|
(import ../../systemModules/vm.nix { inherit NAME; })
|
||||||
|
(import ../../programs/wireshark.nix { inherit NAME; })
|
||||||
|
];
|
||||||
|
users = {
|
||||||
|
users = {
|
||||||
|
"${NAME}" = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [
|
||||||
|
"wheel" # Enable ‘sudo’ for the user.
|
||||||
|
"audio"
|
||||||
|
"sound"
|
||||||
|
"video"
|
||||||
|
"input"
|
||||||
|
"tty"
|
||||||
|
"plugdev"
|
||||||
|
];
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
home-manager = {
|
||||||
|
extraSpecialArgs = { inherit inputs; };
|
||||||
|
users = {
|
||||||
|
"${NAME}" = import ./home.nix;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,29 +1,22 @@
|
||||||
{ config, lib, pkgs, inputs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
flameshot = import ../../common/programs/flameshot.nix { inherit config; };
|
files = import ../../files.nix { inherit config; };
|
||||||
arrpc = import ../../common/programs/arrpc.nix { };
|
shell = import ../../shell.nix { inherit config pkgs; };
|
||||||
zsh = import ../../common/programs/zsh.nix { inherit lib pkgs; };
|
pkgTypes = import ../../pkgs.nix { inherit pkgs config; };
|
||||||
_s1 = import ../../common/sops.nix { inherit config; };
|
packages = pkgTypes.dev ++ pkgTypes.gui ++ pkgTypes.general ++ pkgTypes.scripts ++ pkgTypes.gaming;
|
||||||
files = import ../../common/files.nix { inherit config; };
|
|
||||||
shell = import ../../common/shell.nix { inherit config pkgs; };
|
|
||||||
p = import ../../common/pkgs.nix { inherit pkgs config; };
|
|
||||||
_p1 = p.dev ++ p.gui ++ p.general ++ p.scripts ++ p.gaming;
|
|
||||||
DES = import ../../common/desktopEntries.nix { };
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.config.allowInsecurePredicate = (pkg: true);
|
nixpkgs.config.allowInsecurePredicate = (pkg: true);
|
||||||
imports = [
|
imports = [
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
../homeModules/flameshot.nix
|
||||||
|
../homeModules/arrpc.nix
|
||||||
|
../homeModules/zsh.nix
|
||||||
|
../homeModules/desktopEntries.nix
|
||||||
|
./sops.nix
|
||||||
];
|
];
|
||||||
sops = _s1;
|
|
||||||
programs = {
|
|
||||||
inherit zsh;
|
|
||||||
};
|
|
||||||
programs.java.enable = true;
|
programs.java.enable = true;
|
||||||
programs.java.package = pkgs.temurin-bin-17;
|
programs.java.package = pkgs.temurin-bin-17;
|
||||||
programs.zoxide.enable = true;
|
|
||||||
programs.zoxide.enableZshIntegration = true;
|
|
||||||
programs.git.enable = true;
|
programs.git.enable = true;
|
||||||
programs.git.userName = "sadan";
|
programs.git.userName = "sadan";
|
||||||
programs.git.userEmail = "117494111+sadan4@users.noreply.github.com";
|
programs.git.userEmail = "117494111+sadan4@users.noreply.github.com";
|
||||||
|
@ -48,9 +41,6 @@ in
|
||||||
home.homeDirectory = "/home/meyer";
|
home.homeDirectory = "/home/meyer";
|
||||||
|
|
||||||
|
|
||||||
services = {
|
|
||||||
inherit arrpc flameshot;
|
|
||||||
};
|
|
||||||
# This value determines the Home Manager release that your configuration is
|
# This value determines the Home Manager release that your configuration is
|
||||||
# compatible with. This helps avoid breakage when a new Home Manager release
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||||
# introduces backwards incompatible changes.
|
# introduces backwards incompatible changes.
|
||||||
|
@ -61,7 +51,9 @@ in
|
||||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
# environment.
|
# environment.
|
||||||
home.packages = _p1;
|
home = {
|
||||||
|
inherit packages;
|
||||||
|
};
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
# plain files is through 'home.file'.
|
# plain files is through 'home.file'.
|
||||||
home.file = files;
|
home.file = files;
|
||||||
|
@ -84,7 +76,6 @@ in
|
||||||
home.shellAliases = shell.dev.aliases;
|
home.shellAliases = shell.dev.aliases;
|
||||||
home.sessionPath = shell.dev.path;
|
home.sessionPath = shell.dev.path;
|
||||||
home.sessionVariables = shell.dev.env;
|
home.sessionVariables = shell.dev.env;
|
||||||
xdg.desktopEntries = DES;
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
15
common/users/meyer/sops.nix
Normal file
15
common/users/meyer/sops.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, inputs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
|
];
|
||||||
|
sops = {
|
||||||
|
age.keyFile = "/home/${config.home.username}/.config/sops/age/keys.txt";
|
||||||
|
defaultSopsFile = ../../../secrets.yaml;
|
||||||
|
secrets.hosts = {
|
||||||
|
format = "binary";
|
||||||
|
sopsFile = ../../../secrets/hosts;
|
||||||
|
path = "/home/${config.home.username}/.config/gh/hosts.yml";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue