Skip to content

Commit

Permalink
something about something
Browse files Browse the repository at this point in the history
  • Loading branch information
oomfiee committed Nov 10, 2024
1 parent 82640c6 commit f403304
Show file tree
Hide file tree
Showing 21 changed files with 903 additions and 135 deletions.
57 changes: 57 additions & 0 deletions Hosts/isoimage/cosmic.nix
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;
}
6 changes: 3 additions & 3 deletions Hosts/rose/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
boot.extraModulePackages = [ ];

fileSystems."/" =
{ device = "/dev/disk/by-uuid/91197cda-1a2a-490b-bd44-ed8389ed171d";
{ device = "/dev/disk/by-uuid/08cea4dc-a1af-43da-86fb-17097928d631";
fsType = "btrfs";
options = [ "subvol=@" ];
};

boot.initrd.luks.devices."luks-268eb191-9317-4026-896b-bb8985ac7c06".device = "/dev/disk/by-uuid/268eb191-9317-4026-896b-bb8985ac7c06";
boot.initrd.luks.devices."luks-94e2bb81-4203-49e4-86db-81470dc71812".device = "/dev/disk/by-uuid/94e2bb81-4203-49e4-86db-81470dc71812";

fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/EE07-F633";
{ device = "/dev/disk/by-uuid/299E-28F7";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
Expand Down
30 changes: 22 additions & 8 deletions Modules/Home/Core/CLI/containers.nix
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
];
}
279 changes: 279 additions & 0 deletions Modules/Home/Core/CLI/nvim.nix
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";
};
}
];
};
};
};
};
}
Loading

0 comments on commit f403304

Please sign in to comment.