mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-21 22:55:50 -06:00
impure bitch
This commit is contained in:
parent
c434823995
commit
0230a9cf1b
5 changed files with 121 additions and 16 deletions
2
Makefile
2
Makefile
|
@ -5,6 +5,6 @@ boot: ## evaluate flake for next boot
|
||||||
sudo nixos-rebuild boot --flake .
|
sudo nixos-rebuild boot --flake .
|
||||||
|
|
||||||
switch: ## perform nixos rebuild
|
switch: ## perform nixos rebuild
|
||||||
sudo nixos-rebuild switch --flake .
|
sudo nixos-rebuild switch --flake . --impure
|
||||||
|
|
||||||
-include .task.cfg.mk
|
-include .task.cfg.mk
|
||||||
|
|
6
flake.lock
generated
6
flake.lock
generated
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1674584991,
|
"lastModified": 1669833724,
|
||||||
"narHash": "sha256-2NqCy2ViyT/iOniL0UtrLi15z1TYfPYVj/iY4rWur3M=",
|
"narHash": "sha256-/HEZNyGbnQecrgJnfE8d0WC5c1xuPSD2LUpB6YXlg4c=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "eb95aa0392d4a6f0eb3ac66eb0329397eafde4fb",
|
"rev": "4d2b37a84fad1091b9de401eb450aae66f1a741e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -13,10 +13,11 @@
|
||||||
nixos-vm = inputs.nixpkgs.lib.nixosSystem {
|
nixos-vm = inputs.nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
# ./modules/configuration.nix
|
./modules/configuration.nix
|
||||||
./modules/overlays.nix
|
./modules/overlays.nix
|
||||||
./modules/environment.nix
|
./modules/environment.nix
|
||||||
];
|
];
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
};
|
};
|
||||||
jeran = inputs.nixpkgs.lib.nixosSystem {
|
jeran = inputs.nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
@ -24,7 +25,6 @@
|
||||||
./hosts/jeran/configuration.nix
|
./hosts/jeran/configuration.nix
|
||||||
./hosts/jeran/motd.nix
|
./hosts/jeran/motd.nix
|
||||||
./modules/environment.nix
|
./modules/environment.nix
|
||||||
|
|
||||||
];
|
];
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
};
|
};
|
||||||
|
|
104
modules/configuration.nix
Normal file
104
modules/configuration.nix
Normal file
|
@ -0,0 +1,104 @@
|
||||||
|
{ inputs, lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
"${inputs.nixpkgs}/nixos/modules/installer/virtualbox-demo.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
nix.package = pkgs.nixUnstable;
|
||||||
|
nix.extraOptions = ''
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
'';
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
virtualisation.virtualbox.guest.enable = true;
|
||||||
|
networking.hostName = "nixos-vm"; # Define your hostname.
|
||||||
|
|
||||||
|
time.timeZone = "America/Chicago";
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
|
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
displayManager.startx.enable = true;
|
||||||
|
displayManager.sddm.enable = lib.mkForce false;
|
||||||
|
|
||||||
|
displayManager.autoLogin.enable = lib.mkForce false;
|
||||||
|
windowManager.qtile.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users = {
|
||||||
|
defaultUserShell = pkgs.zsh;
|
||||||
|
users.daylin = {
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fonts.fonts = with pkgs; [
|
||||||
|
noto-fonts
|
||||||
|
noto-fonts-emoji
|
||||||
|
noto-fonts-extra
|
||||||
|
(nerdfonts.override { fonts = [ "FiraCode" "FiraMono" ]; })
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
fuse
|
||||||
|
zsh
|
||||||
|
|
||||||
|
wget
|
||||||
|
unzip
|
||||||
|
less
|
||||||
|
gnumake
|
||||||
|
gcc
|
||||||
|
|
||||||
|
git
|
||||||
|
|
||||||
|
vim
|
||||||
|
neovim
|
||||||
|
starship
|
||||||
|
chezmoi
|
||||||
|
lsd
|
||||||
|
fzf
|
||||||
|
delta
|
||||||
|
gh
|
||||||
|
|
||||||
|
nixpkgs-fmt
|
||||||
|
|
||||||
|
xdotool
|
||||||
|
wezterm
|
||||||
|
eww
|
||||||
|
rofi
|
||||||
|
dunst
|
||||||
|
feh
|
||||||
|
|
||||||
|
picom
|
||||||
|
gtk3
|
||||||
|
|
||||||
|
gnome.adwaita-icon-theme
|
||||||
|
gnome.gnome-settings-daemon
|
||||||
|
catppuccin-gtk
|
||||||
|
|
||||||
|
wavebox
|
||||||
|
|
||||||
|
pciutils
|
||||||
|
(vivaldi.override {
|
||||||
|
proprietaryCodecs = true;
|
||||||
|
enableWidevine = false;
|
||||||
|
commandLineArgs = "--force-dark-mode";
|
||||||
|
})
|
||||||
|
|
||||||
|
vscode.fhs
|
||||||
|
|
||||||
|
go
|
||||||
|
rustup
|
||||||
|
];
|
||||||
|
}
|
|
@ -8,13 +8,14 @@
|
||||||
issue.source = ../etc/issue;
|
issue.source = ../etc/issue;
|
||||||
};
|
};
|
||||||
|
|
||||||
# # environment.variables = {
|
environment.variables = {
|
||||||
# # NIX_LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
|
# NIX_LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
|
||||||
# # stdenv.cc.cc
|
# stdenv.cc.cc
|
||||||
# # openssl
|
# openssl
|
||||||
# #
|
#
|
||||||
# # zlib # for delta
|
# zlib # for delta
|
||||||
# # ];
|
# ];
|
||||||
# # NIX_LD = lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
|
# this setting means needing to build --impure
|
||||||
# # };
|
NIX_LD = lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue