Compare commits

..

3 Commits

Author SHA1 Message Date
2a017e1523 hand gitconfig dotfile 2025-01-11 22:41:21 +00:00
b1d59bbb9e fix starlite paths 2025-01-11 22:25:49 +00:00
ed2d9c57f8 add starlite 2025-01-11 21:50:29 +00:00
12 changed files with 252 additions and 8 deletions

View File

@@ -12,7 +12,7 @@
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
environment.systemPackages = with pkgs; environment.systemPackages = with pkgs;
[ ] ++ (with kdePackages; [ [ maliit-keyboard ] ++ (with kdePackages; [
sddm-kcm sddm-kcm
plasma-disks plasma-disks
partitionmanager partitionmanager

View File

@@ -17,9 +17,14 @@
nixosConfigurations.tuxedo = nixpkgs.lib.nixosSystem { nixosConfigurations.tuxedo = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./configuration/base.nix
./tuxedo/configuration.nix ./tuxedo/configuration.nix
]; ];
}; };
nixosConfigurations.starlite = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./starlite/configuration.nix
];
};
}; };
} }

View File

@@ -0,0 +1,7 @@
[credential]
helper = /home/worble/.nix-profile/bin/git-credential-manager
credentialStore = secretservice
[credential "https://dev.azure.com"]
useHttpPath = true
[credential "https://git.worble.xyz"]
provider = generic

View File

@@ -21,6 +21,21 @@ in
(nerdfonts.override { fonts = [ "SpaceMono" ]; }) (nerdfonts.override { fonts = [ "SpaceMono" ]; })
]; ];
home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy.
# ".screenrc".source = dotfiles/screenrc;
# # You can also set the file content immediately.
# ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
".gitconfig".source = ./dotfiles/gitconfig;
};
programs = { programs = {
bash = { bash = {
enable = true; enable = true;

View File

@@ -9,6 +9,7 @@
libvirtd = { libvirtd = {
enable = true; enable = true;
}; };
# remember to add the necessary users to the podman group
podman = { podman = {
enable = true; enable = true;
# Create a `docker` alias for podman, to use it as a drop-in replacement # Create a `docker` alias for podman, to use it as a drop-in replacement

View File

@@ -0,0 +1,36 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, inputs, ... }:
{
imports =
[
../configuration/base.nix
# Include the results of the hardware scan.
./hardware-configuration.nix
inputs.disko.nixosModules.default
./disk-config.nix
inputs.home-manager.nixosModules.default
../modules/laptop.nix
];
networking.hostName = "starlite"; # Define your hostname.
# Define a user account. Don't forget to set a password with passwd.
users.users.worble = {
initialPassword = "password";
isNormalUser = true;
extraGroups = [ "wheel" "gamemode" ]; # Enable sudo for the user.
linger = true;
};
home-manager.useGlobalPkgs = true;
home-manager = {
extraSpecialArgs = { inherit inputs; };
users = {
"worble" = import ./home.nix;
};
};
}

37
starlite/disk-config.nix Normal file
View File

@@ -0,0 +1,37 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
priority = 1;
name = "ESP";
start = "1M";
end = "128M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" ]; # Override existing partition
mountpoint = "/";
mountOptions = [ "compress=zstd" "noatime" ];
};
};
};
};
};
};
};
}

View File

@@ -0,0 +1,26 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_usb_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s20f0u1u3.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;
}

119
starlite/home.nix Normal file
View File

@@ -0,0 +1,119 @@
{ inputs, config, pkgs, ... }:
{
imports = [
../home-manager/fonts.nix
../home-manager/terminal.nix
../home-manager/firefox/firefox.nix
../home-manager/development/vscode.nix
];
terminal.nixUpdateLocation = "/home/worble/Projects/nixos#starlite";
terminal.flakeUpdateLocation = "/home/worble/Projects/nixos";
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "worble";
home.homeDirectory = "/home/worble";
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
#
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "24.05"; # Please read the comment before changing.
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = with pkgs;[
# # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run.
# pkgs.hello
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
# # fonts?
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
# # You can also create simple shell scripts directly inside your
# # configuration. For example, this adds a command 'my-hello' to your
# # environment:
# (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!"
# '')
thunderbird
keepassxc
strawberry-qt6
rclone
qbittorrent
yt-dlp
joplin-desktop
obsidian
teamspeak_client
webcord
libreoffice-qt
jellyfin-media-player
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy.
# ".screenrc".source = dotfiles/screenrc;
# # You can also set the file content immediately.
# ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
};
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. These will be explicitly sourced when using a
# shell provided by Home Manager. If you don't want to manage your shell
# through Home Manager then you have to manually source 'hm-session-vars.sh'
# located at either
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/worble/etc/profile.d/hm-session-vars.sh
#
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
};
# home.sessionPath = [
# "$HOME/.local/bin"
# ];
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
# Let Home Manager install and manage itself.
programs = {
home-manager.enable = true;
chromium = {
enable = true;
package = pkgs.brave;
};
# install the shaders from anime4k directory for this to work
mpv = {
enable = true;
};
};
}

View File

@@ -7,6 +7,7 @@
{ {
imports = imports =
[ [
../configuration/base.nix
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
inputs.disko.nixosModules.default inputs.disko.nixosModules.default
@@ -17,6 +18,8 @@
../modules/gaming.nix ../modules/gaming.nix
]; ];
networking.hostName = "tuxedo"; # Define your hostname.
fileSystems."/mnt/HDD1" = { fileSystems."/mnt/HDD1" = {
#device = "/dev/disk/by-uuid/35763dc3-c736-4714-ade7-40bf49ad50dd"; #device = "/dev/disk/by-uuid/35763dc3-c736-4714-ade7-40bf49ad50dd";
fsType = "ext4"; fsType = "ext4";
@@ -33,8 +36,6 @@
hardware.tuxedo-drivers.enable = true; hardware.tuxedo-drivers.enable = true;
programs.gpu-screen-recorder.enable = true; programs.gpu-screen-recorder.enable = true;
# ......omit many configurations
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.worble = { users.users.worble = {
initialPassword = "password"; initialPassword = "password";

View File

@@ -200,6 +200,3 @@ text = ''
}; };
}; };
} }

View File

@@ -1,2 +1,2 @@
#!/usr/bin/env bash #!/usr/bin/env bash
sudo nixos-rebuild switch --flake '/home/worble/Projects/nixos#tuxedo' sudo nixos-rebuild switch --flake '/home/worble/Projects/nixos#starlite'