Compare commits
2 commits
be405aa6b0
...
18b14dfb38
Author | SHA1 | Date | |
---|---|---|---|
18b14dfb38 | |||
27bee27627 |
16 changed files with 130 additions and 146 deletions
|
@ -3,5 +3,14 @@
|
||||||
imports = [
|
imports = [
|
||||||
./desktop
|
./desktop
|
||||||
./programs
|
./programs
|
||||||
|
./packages
|
||||||
];
|
];
|
||||||
|
config = {
|
||||||
|
home.username = "krop";
|
||||||
|
home.homeDirectory = "/home/krop";
|
||||||
|
home.stateVersion = "24.05";
|
||||||
|
|
||||||
|
# Let Home Manager install and manage itself.
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,14 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.pointerCursor = {
|
||||||
|
name = "Adwaita";
|
||||||
|
package = pkgs.adwaita-icon-theme;
|
||||||
|
gtk.enable = true;
|
||||||
|
x11.enable = true;
|
||||||
|
size = 24;
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
gnomeExtensions.grand-theft-focus
|
gnomeExtensions.grand-theft-focus
|
||||||
gnomeExtensions.vitals
|
gnomeExtensions.vitals
|
||||||
|
|
8
homeManagerModules/packages/default.nix
Normal file
8
homeManagerModules/packages/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./octave.nix
|
||||||
|
./development.nix
|
||||||
|
./misc.nix
|
||||||
|
];
|
||||||
|
}
|
30
homeManagerModules/packages/development.nix
Normal file
30
homeManagerModules/packages/development.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.krop.hm.packages.development;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.krop.hm.packages.development = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
example = false;
|
||||||
|
description = "Enable my development configuration";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
gh
|
||||||
|
d2
|
||||||
|
iperf
|
||||||
|
];
|
||||||
|
programs.go = {
|
||||||
|
enable = true;
|
||||||
|
goPath = "Repositories/go";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
31
homeManagerModules/packages/misc.nix
Normal file
31
homeManagerModules/packages/misc.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.krop.hm.packages.misc;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.krop.hm.packages.misc = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
example = false;
|
||||||
|
description = "Enable my misc applications";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
spotify
|
||||||
|
moonlight-qt
|
||||||
|
jetbrains-mono
|
||||||
|
mattermost-desktop
|
||||||
|
gparted
|
||||||
|
prismlauncher # REMOVE AND MOVE TO games module after refactoring
|
||||||
|
joplin-desktop
|
||||||
|
wireshark
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
29
homeManagerModules/packages/octave.nix
Normal file
29
homeManagerModules/packages/octave.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.krop.hm.packages.octave;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.krop.hm.packages.octave = {
|
||||||
|
enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
example = false;
|
||||||
|
description = "Enable my octave configuration";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
ghostscript
|
||||||
|
(octaveFull.withPackages (
|
||||||
|
ps: with ps; [
|
||||||
|
octavePackages.signal
|
||||||
|
]
|
||||||
|
))
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -17,6 +17,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [ alacritty-theme ];
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -17,6 +17,10 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
gopls
|
||||||
|
nixd
|
||||||
|
];
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
|
|
|
@ -76,9 +76,6 @@
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
programs = {
|
programs = {
|
||||||
tmux.enable = true;
|
|
||||||
zsh.enable = true;
|
|
||||||
git.enable = true;
|
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
thunderbird.enable = true;
|
thunderbird.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||||
|
@ -14,8 +13,9 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
networking.hostName = "lenar";
|
||||||
|
|
||||||
services.power-profiles-daemon.enable = false;
|
services.power-profiles-daemon.enable = false;
|
||||||
services.tlp = {
|
services.tlp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -24,8 +24,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "lenar"; # Define your hostname.
|
|
||||||
|
|
||||||
# My own modules configuration
|
# My own modules configuration
|
||||||
krop = {
|
krop = {
|
||||||
audio = {
|
audio = {
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||||
|
@ -14,10 +13,8 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
networking.hostName = "wenar-nix";
|
||||||
networking.hostName = "wenar-nix"; # Define your hostname.
|
|
||||||
|
|
||||||
# My own modules configuration
|
# My own modules configuration
|
||||||
krop = {
|
krop = {
|
||||||
|
@ -53,7 +50,7 @@
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
users = {
|
users = {
|
||||||
"krop" = import ../../users/krop;
|
"krop" = import ./home.nix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
6
hosts/wenar-nix/home.nix
Normal file
6
hosts/wenar-nix/home.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.username = "krop";
|
||||||
|
home.homeDirectory = "/home/krop";
|
||||||
|
home.stateVersion = "24.05";
|
||||||
|
}
|
|
@ -1,32 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
# Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.hostName = "work-ntb"; # Define your hostname.
|
|
||||||
|
|
||||||
# My own modules configuration
|
|
||||||
krop = {
|
|
||||||
ide = {
|
|
||||||
enable = true;
|
|
||||||
install-pycharm = true;
|
|
||||||
};
|
|
||||||
python.install-additional = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit inputs;
|
|
||||||
};
|
|
||||||
users = {
|
|
||||||
"krop" = import ../../users/krop;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,54 +0,0 @@
|
||||||
# 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 + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
|
||||||
"xhci_pci"
|
|
||||||
"ahci"
|
|
||||||
"usb_storage"
|
|
||||||
"sd_mod"
|
|
||||||
"rtsx_pci_sdmmc"
|
|
||||||
];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/360cfb7a-07d9-445b-83e2-6ef19bd55948";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/5F8E-3C09";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [
|
|
||||||
"fmask=0077"
|
|
||||||
"dmask=0077"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
# 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.eno2.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
|
@ -1,48 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.username = "krop";
|
|
||||||
home.homeDirectory = "/home/krop";
|
|
||||||
home.stateVersion = "24.05";
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
spotify
|
|
||||||
moonlight-qt
|
|
||||||
alacritty
|
|
||||||
alacritty-theme
|
|
||||||
nixd
|
|
||||||
nil
|
|
||||||
jetbrains-mono
|
|
||||||
mattermost-desktop
|
|
||||||
gh
|
|
||||||
gparted
|
|
||||||
prismlauncher # REMOVE AND MOVE TO games module after refactoring
|
|
||||||
joplin-desktop
|
|
||||||
albert
|
|
||||||
ghostscript
|
|
||||||
(octaveFull.withPackages (
|
|
||||||
ps: with ps; [
|
|
||||||
octavePackages.signal
|
|
||||||
]
|
|
||||||
))
|
|
||||||
wireshark
|
|
||||||
iperf
|
|
||||||
d2
|
|
||||||
gopls
|
|
||||||
];
|
|
||||||
|
|
||||||
home.pointerCursor = {
|
|
||||||
name = "Adwaita";
|
|
||||||
package = pkgs.adwaita-icon-theme;
|
|
||||||
gtk.enable = true;
|
|
||||||
x11.enable = true;
|
|
||||||
size = 24;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.go = {
|
|
||||||
enable = true;
|
|
||||||
goPath = "Repositories/go";
|
|
||||||
};
|
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 333 KiB |
Loading…
Reference in a new issue