-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
903 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ pkgs, modulesPath, lib, config, ... }: | ||
|
||
{ | ||
imports = [ | ||
"${modulesPath}/installer/cd-dvd/installation-cd-graphical-base.nix" | ||
]; | ||
|
||
nixpkgs.hostPlatform = "x86_64-linux"; | ||
# Enable the Plasma 5 Desktop Environment. | ||
|
||
environment.systemPackages = with pkgs; [ | ||
firefox | ||
bcachefs-tools | ||
gparted | ||
parted | ||
git | ||
disko | ||
|
||
# Calamares for graphical installation | ||
#libsForQt5.kpmcore | ||
#calamares-nixos | ||
#calamares-nixos-autostart | ||
#calamares-nixos-extensions | ||
# Get list of locales | ||
#glibcLocales | ||
]; | ||
|
||
|
||
# Support choosing from any locale | ||
i18n.supportedLocales = [ "all" ]; | ||
|
||
nix.settings.experimental-features = [ "nix-command" "flakes" ]; | ||
|
||
# services.displayManager = { | ||
# # Automatically login as nixos. | ||
# sddm.enable = true; | ||
# #autoLogin = { | ||
# # enable = true; | ||
# # user = "nixos"; | ||
# #}; | ||
# }; | ||
|
||
services.desktopManager.cosmic.enable = true; | ||
services.displayManager.cosmic-greeter.enable = true; | ||
|
||
|
||
boot.kernelPackages = lib.mkOverride 0 pkgs.linuxPackages; | ||
nixpkgs.config.allowUnfree = true; | ||
boot.supportedFilesystems.zfs = lib.mkForce false; | ||
|
||
services.xserver.videoDrivers = ["nvidia"]; | ||
hardware.nvidia.open = true; | ||
boot.kernelParams = [ "nvidia_drm.fbdev=1" ]; | ||
|
||
networking.networkmanager.enable = true; | ||
networking.wireless.enable = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,34 @@ | ||
{ pkgs, lib, config, inputs, ... }: | ||
{ | ||
|
||
# distrobox create --name [name] --additional-flags "--device nvidia.com/gpu=all --security-opt=label=disable" --image [image] | ||
|
||
# Enable common container config files in /etc/containers | ||
virtualisation.containers.enable = true; | ||
virtualisation.docker.enable = true; | ||
virtualisation.docker.rootless = { | ||
enable = true; | ||
#setSocketVariable = true; | ||
}; | ||
virtualisation.oci-containers.backend = "podman"; | ||
hardware.nvidia-container-toolkit.enable = true; | ||
virtualisation.docker.extraOptions = "--add-runtime nvidia=/run/current-system/sw/bin/nvidia-container-runtime"; | ||
# virtualisation.docker.extraOptions = "--add-runtime nvidia=/run/current-system/sw/bin/nvidia-container-runtime"; | ||
nixpkgs.config.cudaSupport = true; | ||
virtualisation = { | ||
podman = { | ||
enable = true; | ||
dockerSocket.enable = true; | ||
|
||
# Create a `docker` alias for podman, to use it as a drop-in replacement | ||
dockerCompat = true; | ||
|
||
# Required for containers under podman-compose to be able to talk to each other. | ||
defaultNetwork.settings.dns_enabled = true; | ||
}; | ||
}; | ||
|
||
# Useful other development tools | ||
environment.systemPackages = with pkgs; [ | ||
dive # look into docker image layers | ||
podman-tui # status of containers in the terminal | ||
#docker-compose # start group of containers for dev | ||
podman-compose # start group of containers for dev | ||
nvidia-container-toolkit | ||
cudatoolkit | ||
nvidia-docker | ||
#nvidia-podman | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,279 @@ | ||
{ pkgs, config, lib, userSettings, inputs, ... }: | ||
{ | ||
|
||
# My wife wants me to use neovim (to gamer) [SHOOKED] | ||
|
||
programs = { | ||
neovide = { | ||
enable = true; | ||
settings = { | ||
tabs = true; | ||
vsync = true; | ||
theme = "auto"; | ||
fork = false; | ||
mouse-cursor-icon = "block"; | ||
font = { | ||
normal = [ "JetBrains Mono" ]; | ||
size = 10; | ||
}; | ||
}; | ||
}; | ||
nixvim = { | ||
enable = true; | ||
|
||
keymaps = [ | ||
{ | ||
action = "<leader>f"; | ||
key = "<cmd>Telescope find_files <CR>"; | ||
} | ||
{ | ||
action = "<leader>r"; | ||
key = "<cmd>Telescope oldfiles <CR>"; | ||
} | ||
{ | ||
action = "<leader>g"; | ||
key = "<cmd>Telescope live_grep <CR>"; | ||
} | ||
{ | ||
action = "<leader>tn"; | ||
key = "<cmd>tabnew"; | ||
} | ||
]; | ||
|
||
opts = { | ||
number = true; | ||
relativenumber = true; | ||
clipboard = { | ||
providers = { | ||
wl-copy.enable = true; # Wayland | ||
xsel.enable = true; # For X11 | ||
}; | ||
register = "unnamedplus"; | ||
}; | ||
|
||
globals = { | ||
mapleader = " "; | ||
maplocalleader = "h"; | ||
}; | ||
}; | ||
|
||
colorschemes.base16.enable = true; | ||
|
||
plugins = { | ||
lualine.enable = true; | ||
neocord.enable = true; | ||
telescope.enable = true; | ||
web-devicons.enable = true; | ||
oil.enable = true; | ||
which-key.enable = true; | ||
persistence.enable = true; | ||
#plugins.startup.enable = true; | ||
alpha = { | ||
enable = true; | ||
theme = null; | ||
layout = | ||
let | ||
padding = val: { | ||
type = "padding"; | ||
inherit val; | ||
}; | ||
in | ||
[ | ||
(padding 4) | ||
{ | ||
opts = { | ||
hl = "AlphaHeader"; | ||
position = "center"; | ||
}; | ||
type = "text"; | ||
val = [ | ||
" " | ||
" " | ||
" " | ||
" /$$ /$$ /$$ /$$ /$$ /$$ " | ||
" | $$$ | $$| $$ /$$/| $$ / $$ " | ||
" | $$$$| $$ \ $$ /$$/ | $$/ $$/ " | ||
" | $$ $$ $$ \ $$$$/ \ $$$$/ " | ||
" | $$ $$$$ \ $$/ >$$ $$ " | ||
" | $$\ $$$ | $$ /$$/\ $$ " | ||
" | $$ \ $$ | $$ | $$ \ $$ " | ||
" |__/ \__/ |__/ |__/ |__/ " | ||
" " | ||
" " | ||
" " | ||
]; | ||
} | ||
(padding 2) | ||
{ | ||
type = "button"; | ||
val = " Find File"; | ||
on_press = { | ||
__raw = "function() require('telescope.builtin').find_files() end"; | ||
}; | ||
opts = { | ||
# hl = "comment"; | ||
keymap = [ | ||
"n" | ||
"f" | ||
":Telescope find_files <CR>" | ||
{ | ||
noremap = true; | ||
silent = true; | ||
nowait = true; | ||
} | ||
]; | ||
shortcut = "f"; | ||
|
||
position = "center"; | ||
cursor = 3; | ||
width = 38; | ||
align_shortcut = "right"; | ||
hl_shortcut = "Keyword"; | ||
}; | ||
} | ||
(padding 1) | ||
{ | ||
type = "button"; | ||
val = " New File"; | ||
on_press = { | ||
__raw = "function() vim.cmd[[ene]] end"; | ||
}; | ||
opts = { | ||
# hl = "comment"; | ||
keymap = [ | ||
"n" | ||
"n" | ||
":ene <BAR> startinsert <CR>" | ||
{ | ||
noremap = true; | ||
silent = true; | ||
nowait = true; | ||
} | ||
]; | ||
shortcut = "n"; | ||
|
||
position = "center"; | ||
cursor = 3; | ||
width = 38; | ||
align_shortcut = "right"; | ||
hl_shortcut = "Keyword"; | ||
}; | ||
} | ||
(padding 1) | ||
{ | ||
type = "button"; | ||
val = " Recent Files"; | ||
on_press = { | ||
__raw = "function() require('telescope.builtin').oldfiles() end"; | ||
}; | ||
opts = { | ||
# hl = "comment"; | ||
keymap = [ | ||
"n" | ||
"r" | ||
":Telescope oldfiles <CR>" | ||
{ | ||
noremap = true; | ||
silent = true; | ||
nowait = true; | ||
} | ||
]; | ||
shortcut = "r"; | ||
|
||
position = "center"; | ||
cursor = 3; | ||
width = 38; | ||
align_shortcut = "right"; | ||
hl_shortcut = "Keyword"; | ||
}; | ||
} | ||
(padding 1) | ||
{ | ||
type = "button"; | ||
val = " Find Word"; | ||
on_press = { | ||
__raw = "function() require('telescope.builtin').live_grep() end"; | ||
}; | ||
opts = { | ||
# hl = "comment"; | ||
keymap = [ | ||
"n" | ||
"g" | ||
":Telescope live_grep <CR>" | ||
{ | ||
noremap = true; | ||
silent = true; | ||
nowait = true; | ||
} | ||
]; | ||
shortcut = "g"; | ||
|
||
position = "center"; | ||
cursor = 3; | ||
width = 38; | ||
align_shortcut = "right"; | ||
hl_shortcut = "Keyword"; | ||
}; | ||
} | ||
(padding 1) | ||
{ | ||
type = "button"; | ||
val = " Restore Session"; | ||
on_press = { | ||
__raw = "function() require('persistence').load() end"; | ||
}; | ||
opts = { | ||
# hl = "comment"; | ||
keymap = [ | ||
"n" | ||
"s" | ||
":lua require('persistence').load()<cr>" | ||
{ | ||
noremap = true; | ||
silent = true; | ||
nowait = true; | ||
} | ||
]; | ||
shortcut = "s"; | ||
|
||
position = "center"; | ||
cursor = 3; | ||
width = 38; | ||
align_shortcut = "right"; | ||
hl_shortcut = "Keyword"; | ||
}; | ||
} | ||
(padding 1) | ||
{ | ||
type = "button"; | ||
val = " Quit Neovim"; | ||
on_press = { | ||
__raw = "function() vim.cmd[[qa]] end"; | ||
}; | ||
opts = { | ||
# hl = "comment"; | ||
keymap = [ | ||
"n" | ||
"q" | ||
":qa<CR>" | ||
{ | ||
noremap = true; | ||
silent = true; | ||
nowait = true; | ||
} | ||
]; | ||
shortcut = "q"; | ||
|
||
position = "center"; | ||
cursor = 3; | ||
width = 38; | ||
align_shortcut = "right"; | ||
hl_shortcut = "Keyword"; | ||
}; | ||
} | ||
]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.