add cosmic vm

This commit is contained in:
cswimr 2025-01-28 07:44:32 -06:00
parent 7e7234e00a
commit bbfef8c4ee
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{
pkgs,
lib,
...
}:
let
packages = with pkgs; [ fastfetch ];
in
{
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="
];
};
};
}

View file

@ -0,0 +1,37 @@
{
description = "System Configuration @ cswimr 2024";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
cosmic.url = "github:lilyinstarlight/nixos-cosmic";
};
outputs =
{
self,
nixpkgs,
cosmic,
...
}@inputs:
let
user = "nixos";
system = "x86_64-linux";
in
{
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
system = system;
specialArgs = {
inherit inputs;
system = system;
hostname = "nixos";
user = user;
};
modules = [
# imports
../common.nix
./default.nix
cosmic.nixosModules.default
];
};
};
};
}