mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
renamed configuration.nix to common.nix
moved sudo configuration to shells.nix switched to kmscon reorganized all packages removed a few switched from scripts to shell aliases set keep-outputs and keep-derivations to false removed picom from laptop
This commit is contained in:
parent
4b3e928482
commit
b3cb8940d4
11 changed files with 119 additions and 115 deletions
|
|
@ -5,13 +5,6 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
system.stateVersion = settings.version;
|
system.stateVersion = settings.version;
|
||||||
security.sudo = {
|
|
||||||
enable = true;
|
|
||||||
execWheelOnly = true;
|
|
||||||
extraConfig = ''
|
|
||||||
Defaults env_keep += "EDITOR VISUAL PAGER SYSTEMD_PAGERSECURE TERMINAL"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
#hardware stuff
|
#hardware stuff
|
||||||
hardware = {
|
hardware = {
|
||||||
enableRedistributableFirmware = true;
|
enableRedistributableFirmware = true;
|
||||||
|
|
@ -77,10 +70,6 @@
|
||||||
};
|
};
|
||||||
#terminal stuff
|
#terminal stuff
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
console = {
|
|
||||||
font = "Lat2-Terminus16";
|
|
||||||
useXkbConfig = true;
|
|
||||||
};
|
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
services.gvfs.enable = true; #gvfs for pcmanfm
|
services.gvfs.enable = true; #gvfs for pcmanfm
|
||||||
}
|
}
|
||||||
28
flake.lock
generated
28
flake.lock
generated
|
|
@ -74,11 +74,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1675362331,
|
"lastModified": 1675454231,
|
||||||
"narHash": "sha256-VmcnKPj5gJLxWK7Bxlhg2LoQvhKRss7Ax+uoFjd3qKY=",
|
"narHash": "sha256-5rgcWq1nFWlbR3NsLqY7i/7358uhkSeMQJ/LEHk3BWA=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a100acd7bbf105915b0004427802286c37738fef",
|
"rev": "06999209d7a0043d4372e38f57cffae00223d592",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -88,21 +88,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-master": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1675485332,
|
|
||||||
"narHash": "sha256-fFxXsBC+0wpxVzcUMDFsghG+oWrsf5/yCzusfDcRhqg=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "ce310d1e4a614d7d0b24c9cc1ef172214a637d37",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nvim-config": {
|
"nvim-config": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils_2",
|
||||||
|
|
@ -111,11 +96,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1675126675,
|
"lastModified": 1675536108,
|
||||||
"narHash": "sha256-AJPwC5uqycc75hMrHpB8AzhzHcTDX9ESOmasJp12reU=",
|
"narHash": "sha256-HjWJ7HF77U32QLsRWZGrrZXW3lnq7iYPZ6as+Je5dwQ=",
|
||||||
"owner": "ISnortPennies",
|
"owner": "ISnortPennies",
|
||||||
"repo": "nvim-config",
|
"repo": "nvim-config",
|
||||||
"rev": "e97deb8ff0901607069aa9df840fdd831058810f",
|
"rev": "cda439a36bf6677fe4c8ebddf7e59e2df2742059",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -129,7 +114,6 @@
|
||||||
"fetch-rs": "fetch-rs",
|
"fetch-rs": "fetch-rs",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-master": "nixpkgs-master",
|
|
||||||
"nvim-config": "nvim-config",
|
"nvim-config": "nvim-config",
|
||||||
"spicetify-nix": "spicetify-nix",
|
"spicetify-nix": "spicetify-nix",
|
||||||
"suckless": "suckless",
|
"suckless": "suckless",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
|
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
|
||||||
nixpkgs-master.url = github:NixOS/nixpkgs;
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = github:nix-community/home-manager;
|
url = github:nix-community/home-manager;
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
@ -42,9 +41,9 @@
|
||||||
t-rex-miner = final.callPackage ./pkgs/t-rex-miner {};
|
t-rex-miner = final.callPackage ./pkgs/t-rex-miner {};
|
||||||
afk-cmds = final.callPackage ./pkgs/afk-cmds {};
|
afk-cmds = final.callPackage ./pkgs/afk-cmds {};
|
||||||
parrot = final.callPackage ./pkgs/parrot {};
|
parrot = final.callPackage ./pkgs/parrot {};
|
||||||
webcord = inputs.nixpkgs-master.legacyPackages.${system}.webcord;
|
|
||||||
})
|
})
|
||||||
inputs.suckless.overlay
|
inputs.suckless.overlay
|
||||||
|
inputs.nvim-config.overlays.${system}.default
|
||||||
inputs.fetch-rs.overlays.${system}.default
|
inputs.fetch-rs.overlays.${system}.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -65,7 +64,7 @@
|
||||||
inputs.sxhkd-flake.nixosModules.sxhkd
|
inputs.sxhkd-flake.nixosModules.sxhkd
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
./home-manager
|
./home-manager
|
||||||
./configuration.nix
|
./common.nix
|
||||||
./systems/desktop.nix
|
./systems/desktop.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
];
|
];
|
||||||
|
|
@ -81,10 +80,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
inputs.sxhkd-flake.nixosModules.sxhkd
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
./home-manager
|
./home-manager
|
||||||
./configuration.nix
|
./common.nix
|
||||||
./systems/laptop.nix
|
./systems/laptop.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,29 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
|
services.kmscon = {
|
||||||
|
enable = true;
|
||||||
|
hwRender = true;
|
||||||
|
extraConfig = ''
|
||||||
|
font-size=12
|
||||||
|
'';
|
||||||
|
fonts = [
|
||||||
|
{
|
||||||
|
name = "Overpass Mono";
|
||||||
|
package = pkgs.overpass;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "OverpassMono Nerd Font";
|
||||||
|
package =
|
||||||
|
pkgs.nerdfonts.override
|
||||||
|
{
|
||||||
|
fonts = ["Overpass"];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Material Design Icons";
|
||||||
|
package = pkgs.material-design-icons;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
fonts = {
|
fonts = {
|
||||||
fonts = with pkgs; [
|
fonts = with pkgs; [
|
||||||
overpass
|
overpass
|
||||||
|
|
@ -8,6 +33,7 @@
|
||||||
fonts = ["Overpass"];
|
fonts = ["Overpass"];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
enableDefaultFonts = false;
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
fontconfig = {
|
fontconfig = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,28 @@
|
||||||
{
|
{pkgs, ...}: {
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
environment = {
|
environment = {
|
||||||
defaultPackages = []; #don't install anything by default
|
defaultPackages = []; #don't install anything by default
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
bottom #view tasks
|
|
||||||
efibootmgr #efi editor
|
efibootmgr #efi editor
|
||||||
maim #screenshooter
|
|
||||||
pciutils #lspci
|
pciutils #lspci
|
||||||
alsa-utils #volume control
|
alsa-utils #volume control
|
||||||
btrfs-progs #for external harddrive
|
|
||||||
vlc #play stuff
|
|
||||||
webcord # talk to people (gross)
|
|
||||||
feh #for wallpaper
|
|
||||||
xfce.mousepad
|
|
||||||
brightnessctl #brightness control for laptop
|
|
||||||
playerctl #music control
|
|
||||||
networkmanagerapplet #gui connection control
|
|
||||||
pavucontrol #gui volume control
|
|
||||||
xclip #commandline clipboard access
|
xclip #commandline clipboard access
|
||||||
exa #ls replacement
|
btrfs-progs #for external harddrive
|
||||||
cava #pretty audio
|
feh #for wallpaper
|
||||||
nitch # cus yes
|
|
||||||
dmenu #suckless launcher
|
#directly used tui apps
|
||||||
st #suckless terminal
|
bottom #view tasks
|
||||||
pipes-rs # more fun things
|
|
||||||
pcmanfm #file manager
|
|
||||||
nix-tree #view packages
|
|
||||||
bc #terminal calculator
|
bc #terminal calculator
|
||||||
page #use nvim as a pager
|
nix-tree #view packages
|
||||||
|
#pointless stuff
|
||||||
|
cava #pretty audio
|
||||||
|
pipes-rs # more fun things
|
||||||
|
|
||||||
|
#gui apps
|
||||||
|
pavucontrol #gui volume control
|
||||||
|
pcmanfm #file manager
|
||||||
|
#big gui apps
|
||||||
|
webcord # talk to people (gross)
|
||||||
librewolf #best browser
|
librewolf #best browser
|
||||||
inputs.nvim-config.packages.${pkgs.system}.default #my custom nvim flake
|
|
||||||
fetch-rs
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
{pkgs, ...}: let
|
|
||||||
update-system = pkgs.writeShellScriptBin "update-system" ''
|
|
||||||
if ! [ $(id -u) = 0 ]; then
|
|
||||||
echo "RUN AS ROOT"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
nix flake update /etc/nixos/#
|
|
||||||
'';
|
|
||||||
|
|
||||||
clean-store = pkgs.writeShellScriptBin "clean-store" ''
|
|
||||||
if ! [ $(id -u) = 0 ]; then
|
|
||||||
echo "RUN AS ROOT"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
rm /nix/var/nix/gcroots/auto/*
|
|
||||||
nix-collect-garbage -d
|
|
||||||
'';
|
|
||||||
|
|
||||||
apply-system = pkgs.writeShellScriptBin "apply-system" ''
|
|
||||||
if ! [ $(id -u) = 0 ]; then
|
|
||||||
echo "RUN AS ROOT"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
nixos-rebuild switch --flake /etc/nixos/#
|
|
||||||
'';
|
|
||||||
|
|
||||||
full-upgrade = pkgs.writeShellScriptBin "full-upgrade" ''
|
|
||||||
if ! [ $(id -u) = 0 ]; then
|
|
||||||
echo "RUN AS ROOT"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
update-system
|
|
||||||
apply-system
|
|
||||||
'';
|
|
||||||
|
|
||||||
pastebin = pkgs.writeShellScriptBin "pastebin" ''
|
|
||||||
curl -F 'clbin=<-' https://clbin.com
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
environment.systemPackages = [update-system apply-system full-upgrade clean-store pastebin];
|
|
||||||
}
|
|
||||||
|
|
@ -1,18 +1,68 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: rec {
|
||||||
environment = {
|
environment = {
|
||||||
|
systemPackages = with pkgs; [
|
||||||
|
dash
|
||||||
|
neovim
|
||||||
|
page
|
||||||
|
zsh
|
||||||
|
st
|
||||||
|
exa
|
||||||
|
fetch-rs
|
||||||
|
];
|
||||||
binsh = "${pkgs.dash}/bin/dash"; #use dash for speed
|
binsh = "${pkgs.dash}/bin/dash"; #use dash for speed
|
||||||
variables = {
|
variables = {
|
||||||
EDITOR = "vi";
|
EDITOR = "nvim";
|
||||||
VISUAL = "vi";
|
VISUAL = "nvim";
|
||||||
PAGER = "page";
|
PAGER = "page";
|
||||||
SYSTEMD_PAGERSECURE = "true";
|
SYSTEMD_PAGERSECURE = "true";
|
||||||
TERMINAL = "st";
|
TERMINAL = "st";
|
||||||
|
NIX_BUILD_SHELL = "zsh";
|
||||||
};
|
};
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "exa --long --icons";
|
vm-start = "virsh start Windows";
|
||||||
|
vm-stop = "virsh shutdown Windows";
|
||||||
|
#make sudo use aliases
|
||||||
|
sudo = "sudo ";
|
||||||
|
#paste link trick
|
||||||
|
pastebin = "curl -F 'clbin=<-' https://clbin.com";
|
||||||
|
#nix stuff
|
||||||
|
update = "nix flake update /etc/nixos/#";
|
||||||
|
switch = "nixos-rebuild switch";
|
||||||
|
boot = "nixos-rebuild boot";
|
||||||
|
clean = "nix-collect-garbage -d";
|
||||||
|
gc-force = "rm /nix/var/gcroots/auto/*";
|
||||||
|
gc-check = "find -H /nix/var/nix/gcroots/auto -type l | xargs -I {} sh -c 'readlink {}; realpath {}; echo' | page";
|
||||||
|
#vim stuff
|
||||||
|
vi = "nvim";
|
||||||
|
vim = "nvim";
|
||||||
|
vimdiff = "nvim -d";
|
||||||
|
#exa is 1 too many letters
|
||||||
|
ls = "exa";
|
||||||
|
l = "exa -lbF --git";
|
||||||
|
ll = "$exa -lbGF --git";
|
||||||
|
llm = "exa -lbGd --git --sort=modified";
|
||||||
|
la = "exa -lbhHigUmuSa --time-style=long-iso --git --color-scale";
|
||||||
|
lx = "exa -lbhHigUmuSa@ --time-style=long-iso --git --color-scale";
|
||||||
|
lS = "exa -1";
|
||||||
|
lt = "exa --tree --level=2";
|
||||||
};
|
};
|
||||||
interactiveShellInit = "fetch-rs";
|
interactiveShellInit = "fetch-rs";
|
||||||
};
|
};
|
||||||
|
security.sudo = {
|
||||||
|
enable = true;
|
||||||
|
execWheelOnly = true;
|
||||||
|
extraConfig = ''
|
||||||
|
Defaults env_keep += "${builtins.concatStringsSep " " (builtins.attrNames environment.variables)}"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
#zsh stuff
|
||||||
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
environment.shells = [pkgs.zsh];
|
||||||
programs = {
|
programs = {
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -23,6 +73,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
#starship
|
||||||
starship = {
|
starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{
|
{pkgs, ...}: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
maim #screenshooter
|
||||||
|
brightnessctl #brightness control for laptop
|
||||||
|
playerctl #music control
|
||||||
|
];
|
||||||
services.sxhkd = {
|
services.sxhkd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
|
|
|
||||||
4
nix.nix
4
nix.nix
|
|
@ -36,5 +36,9 @@
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
};
|
};
|
||||||
|
extraOptions = ''
|
||||||
|
keep-outputs = false
|
||||||
|
keep-derivations = false
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
"parrot"
|
"parrot"
|
||||||
"picom"
|
"picom"
|
||||||
"refreshrate"
|
"refreshrate"
|
||||||
"scripts"
|
|
||||||
"sxhkd"
|
"sxhkd"
|
||||||
"vfio"
|
"vfio"
|
||||||
"dwm"
|
"dwm"
|
||||||
|
|
@ -28,6 +27,9 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
bitwarden #store stuff
|
bitwarden #store stuff
|
||||||
qbittorrent #steal stuff
|
qbittorrent #steal stuff
|
||||||
|
networkmanagerapplet #gui connection control
|
||||||
|
vlc #play stuff
|
||||||
|
dmenu #suckless launcher
|
||||||
];
|
];
|
||||||
networking.hostName = settings.hostname;
|
networking.hostName = settings.hostname;
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,7 @@
|
||||||
"fonts"
|
"fonts"
|
||||||
"git"
|
"git"
|
||||||
"packages"
|
"packages"
|
||||||
"picom"
|
|
||||||
"prime"
|
"prime"
|
||||||
"scripts"
|
|
||||||
"gnome"
|
"gnome"
|
||||||
"shells"
|
"shells"
|
||||||
"gaming"
|
"gaming"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue