Compare commits
No commits in common. "d6cd385b8faf2921cf178f411681b382ea9292fa" and "6b5c01fc15bb571ac4350e26a2ff8b9cd7eab454" have entirely different histories.
d6cd385b8f
...
6b5c01fc15
4 changed files with 147 additions and 38 deletions
63
flake.nix
63
flake.nix
|
@ -82,7 +82,7 @@
|
||||||
./nixos/flatpak.nix
|
./nixos/flatpak.nix
|
||||||
./nixos/gaming.nix
|
./nixos/gaming.nix
|
||||||
./nixos/gui-pkgs.nix
|
./nixos/gui-pkgs.nix
|
||||||
./nixos/nvidia.nix
|
#./nixos/nvidia.nix
|
||||||
./nixos/nvim.nix
|
./nixos/nvim.nix
|
||||||
./nixos/pkg.nix
|
./nixos/pkg.nix
|
||||||
./nixos/shell.nix
|
./nixos/shell.nix
|
||||||
|
@ -153,6 +153,67 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nebula = nixpkgs.lib.nixosSystem {
|
||||||
|
system = system;
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
system = system;
|
||||||
|
hostname = "nebula";
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
# imports
|
||||||
|
./hosts/nebula.nix
|
||||||
|
./nixos/catppuccin.nix
|
||||||
|
./nixos/configuration.nix
|
||||||
|
./nixos/development.nix
|
||||||
|
./nixos/environment.nix
|
||||||
|
./nixos/gaming.nix
|
||||||
|
./nixos/gui-pkgs.nix
|
||||||
|
./nixos/nvim.nix
|
||||||
|
./nixos/pkg.nix
|
||||||
|
./nixos/shell.nix
|
||||||
|
./nixos/sudo.nix
|
||||||
|
./nixos/symlinks.nix
|
||||||
|
./nixos/tailscale.nix
|
||||||
|
|
||||||
|
{
|
||||||
|
# enable bluetooth
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputs.nixvim.nixosModules.nixvim
|
||||||
|
inputs.nix-flatpak.nixosModules.nix-flatpak
|
||||||
|
|
||||||
|
# Home Manager
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
||||||
|
backupFileExtension = "bak";
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
system = system;
|
||||||
|
hostname = "nebula";
|
||||||
|
user = user;
|
||||||
|
};
|
||||||
|
users.${user} = {
|
||||||
|
imports = [
|
||||||
|
./home-manager/plasma.nix
|
||||||
|
./home-manager/user.nix
|
||||||
|
./home-manager/vscode.nix
|
||||||
|
{
|
||||||
|
programs.git.extraConfig.user.signingkey = "082F226A1D8C0860";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
45
hosts/nebula.nix
Normal file
45
hosts/nebula.nix
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
# 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"
|
||||||
|
"ahci"
|
||||||
|
"usbhid"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/658d4465-7bac-4e12-ad92-00fef8abcfe3";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# 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.docker0.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
39
hosts/virtual-machines/cosmic/default.nix
Normal file
39
hosts/virtual-machines/cosmic/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
packages = with pkgs; [
|
||||||
|
fastfetch
|
||||||
|
cosmic-wallpapers
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs = {
|
||||||
|
firefox.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
desktopManager.cosmic.enable = true;
|
||||||
|
displayManager.cosmic-greeter.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
virtualisation.vmVariant.virtualisation = {
|
||||||
|
memorySize = 8192;
|
||||||
|
cores = 6;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = lib.lists.unique (packages);
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
substituters = [
|
||||||
|
"https://cosmic.cachix.org"
|
||||||
|
];
|
||||||
|
trusted-public-keys = [
|
||||||
|
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -28,44 +28,8 @@
|
||||||
modules = [
|
modules = [
|
||||||
# imports
|
# imports
|
||||||
../common.nix
|
../common.nix
|
||||||
|
./default.nix
|
||||||
cosmic.nixosModules.default
|
cosmic.nixosModules.default
|
||||||
(
|
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
let
|
|
||||||
packages = with pkgs; [
|
|
||||||
fastfetch
|
|
||||||
cosmic-wallpapers
|
|
||||||
];
|
|
||||||
in
|
|
||||||
{
|
|
||||||
programs = {
|
|
||||||
firefox.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
desktopManager.cosmic.enable = true;
|
|
||||||
displayManager.cosmic-greeter.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualisation.vmVariant.virtualisation = {
|
|
||||||
memorySize = 8192;
|
|
||||||
cores = 6;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = lib.lists.unique (packages);
|
|
||||||
|
|
||||||
nix = {
|
|
||||||
settings = {
|
|
||||||
substituters = [
|
|
||||||
"https://cosmic.cachix.org"
|
|
||||||
];
|
|
||||||
trusted-public-keys = [
|
|
||||||
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
)
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue