Finish felixalbpc, cleanup home-manager

This commit is contained in:
Felix Albrigtsen 2024-09-13 13:57:16 +02:00 committed by Felix Albrigtsen
parent f74bc0ec5e
commit a05526b4bc
9 changed files with 111 additions and 41 deletions

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, lib, ... }:
{ {
imports = [ imports = [
./neovim.nix ./neovim.nix
@ -11,7 +11,6 @@
bottom bottom
ncdu ncdu
neofetch neofetch
nodejs
sshfs sshfs
sshuttle sshuttle
]; ];

View File

@ -21,7 +21,6 @@ in {
telescope-nvim telescope-nvim
nvim-lspconfig nvim-lspconfig
# copilot-vim
nvim-treesitter nvim-treesitter
coc-css coc-css
@ -125,7 +124,9 @@ in {
map <Leader><Space> :noh<CR> map <Leader><Space> :noh<CR>
" Start with copilot disabled " Start with copilot disabled
autocmd VimEnter * Copilot disable if exists("*Copilot")
autocmd VimEnter * Copilot disable
endif
''; '';
}; };

View File

@ -2,6 +2,7 @@
programs = { programs = {
zsh = { zsh = {
enable = true; enable = true;
history.extended = true;
prezto = { prezto = {
enable = true; enable = true;
@ -14,8 +15,6 @@
pwdLength = "long"; pwdLength = "long";
showReturnVal = true; showReturnVal = true;
}; };
history.extended = true;
historySubstringSearch.enable = true;
terminal.autoTitle = true; terminal.autoTitle = true;
pmodules = [ pmodules = [
@ -23,6 +22,7 @@
"terminal" "terminal"
"editor" "editor"
"history" "history"
"history-substring-search"
# "directory" # "directory"
"spectrum" "spectrum"
# "utility" # "utility"

View File

@ -4,7 +4,7 @@
imports = imports =
[ [
../../base.nix ../../base.nix
# ./hardware-configuration.nix ./hardware-configuration.nix
./desktop ./desktop
]; ];
@ -16,6 +16,7 @@
]; ];
}; };
tempAddresses = "disabled";
hostName = "felixalbpc"; hostName = "felixalbpc";
nameservers = [ "129.241.0.200" "129.241.0.201" "2001:700:300::200" "2001:700:300::201" ]; nameservers = [ "129.241.0.200" "129.241.0.201" "2001:700:300::200" "2001:700:300::201" ];
domain = "it.ntnu.no"; domain = "it.ntnu.no";
@ -24,6 +25,10 @@
console.keyMap = "no"; console.keyMap = "no";
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"copilot.vim"
];
users.users.felixalb = { users.users.felixalb = {
uid = 1328256; uid = 1328256;
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];

View File

@ -1,29 +1,38 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
imports = [
./remote.nix
./gnome.nix
./xfce.nix
];
services.xserver = { services.xserver = {
enable = true; enable = true;
displayManager.gdm = { displayManager.gdm = {
enable = true; enable = true;
wayland = true; wayland = true;
}; };
xkbOptions = "ctrl:nocaps"; xkb = {
layout = "no,us"; options = "ctrl:nocaps";
xkbVariant = "intl"; variant = "intl";
layout = "no,us";
};
windowManager.qtile.enable = true;
}; };
programs.hyprland.enable = true;
hardware.keyboard.zsa.enable = true; hardware.keyboard.zsa.enable = true;
environment.sessionVariables.NIXOS_OZONE_WL = "1"; environment.sessionVariables.NIXOS_OZONE_WL = "1";
environment.systemPackages = with pkgs; [ home-manager.users.felixalb = {
xclip services = {
pavucontrol dunst.enable = true;
]; };
home.packages = with pkgs; [
i3lock
libnotify
pamixer
pavucontrol
sxhkd
xclip
xss-lock
];
};
hardware.opengl.enable = true; hardware.opengl.enable = true;

View File

@ -1,10 +0,0 @@
{ config, pkgs, lib, ... }:
{
services.xserver.desktopManager.gnome.enable = true;
environment.systemPackages = with pkgs; [
gnomeExtensions.appindicator
gnome.adwaita-icon-theme
];
services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
programs.dconf.enable = true;
}

View File

@ -0,0 +1,35 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.luks.devices."cryptlvm".device = "/dev/disk/by-uuid/7516ebdb-14c3-4cb5-9d06-5e9d0e34b798";
fileSystems."/" =
{ device = "/dev/disk/by-uuid/02ac773e-31ff-4579-ad9a-859ba74f2a9e";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/77ED-720D";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-label/swap"; }
];
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@ -2,27 +2,54 @@
{ {
imports = [ imports = [
./../../home/base.nix ./../../home/base.nix
./../../home/alacritty.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
aerc catimg
chromium
dante
dig
element-desktop element-desktop
jq
maim
mpv
oauth2ms
openssl
openstackclient openstackclient
pwgen
remmina remmina
w3m
python3 (python311.withPackages (ps: with ps; [
] ++ (with python3Packages; [ numpy
numpy pycryptodome
pycryptodome python-novaclient
requests requests
]); ]))
];
programs = { programs = {
zsh.shellAliases."rebuild" = "sudo nixos-rebuild switch --flake /config"; aerc.enable = true;
git.extraConfig.user.email = "felix.albrigtsen@ntnu.no";
alacritty.enable = true; alacritty.enable = true;
firefox.enable = true; firefox.enable = true;
git.extraConfig.user.email = "felix.albrigtsen@ntnu.no";
rofi.enable = true; rofi.enable = true;
zsh.shellAliases."rebuild" = "sudo nixos-rebuild switch --flake /config";
neovim.plugins = with pkgs.vimPlugins; [ copilot-vim ];
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/about" = "firefox.desktop";
"x-scheme-handler/unknown" = "firefox.desktop";
};
}; };
home.stateVersion = "24.05"; home.stateVersion = "24.05";

View File

@ -23,6 +23,7 @@
cocoapods cocoapods
gnutar gnutar
nix-index nix-index
nodejs
tldr tldr
unstable.snicat unstable.snicat
w3m w3m
@ -40,8 +41,11 @@
prezto.pmodules = [ "ssh" ]; prezto.pmodules = [ "ssh" ];
}; };
# Ctrl+y + , programs.neovim.plugins = with pkgs.vimPlugins; [
programs.neovim.plugins = with pkgs.vimPlugins; [ coc-emmet emmet-vim ]; coc-emmet
copilot-vim
emmet-vim # Ctrl+y + ,
];
# Copy Applications to ~/Applications to allow them to be launched from Spotlight # Copy Applications to ~/Applications to allow them to be launched from Spotlight
disabledModules = [ "targets/darwin/linkapps.nix" ]; disabledModules = [ "targets/darwin/linkapps.nix" ];